Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17009,44845,13,44855,45286,44671,28313,45042,3,44878,16885,18688,45262,44762,5410,44669,44689,44739,18446,17771,17601,45346,45515,17755,17657,45229,44764,44869,18996,17556,8753,45177,44687,18652,18900,34194,44875,9341,44640,18650,44884,44531,17114,17904,45072,24438,44767,3883,45518,18185,10402,18172,31354,17335,45561,17703,45180,18648,32454,18042,17492,45043,44674,19078,36472,18719,18427,37057,44854,13988)
Unknown column 'np.person' in 'where clause'