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 (43800,44853,45277,45346,14402,44762,44851,45518,30135,17527,18279,10402,45042,44739,17755,6875,18185,18427,24438,18353,18172,44671,9341,19078,44768,6782,6862,5410,17904,18301,30986,44867,45177,44894,18996,18652,44866,24412,44868,17703,44865,18981,44531,44856,44767,14622,18286,37267,37057,5259,45043,18794,4686,16935,45515,44640,17335,44836,18237,44858,45567,17657,44764,44845,18650,44875,45286,5388,44863,44689)
Unknown column 'np.person' in 'where clause'