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 (18900,44671,44775,17278,18894,31354,44875,44837,44849,44856,18042,44855,13425,19078,17114,18427,13,28530,39676,37267,18172,17335,18648,44762,17601,44853,18353,17835,32454,45043,44866,4765,44687,18301,44739,44768,44766,34194,45262,17703,18652,18794,44836,18996,3,24412,45515,45042,44669,17527,44765,18185,45180,18650,6782,44858,16885,4686,14622,37057,45567,45516,10402,18688,44845,44861,36472,45229,5259,28313)
Unknown column 'np.person' in 'where clause'