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 (44855,43800,17009,44671,17527,44853,45072,44848,5410,17981,17904,17114,14622,18185,44711,13922,18719,16885,5259,18572,44849,4765,45177,45286,13,44640,18353,9341,17835,18648,17351,31354,44685,44689,17756,24441,18688,18652,24438,45262,18446,44867,45277,17755,8753,5993,44837,18237,17278,44764,44835,17237,16935,44766,44836,44861,45229,44866,44767,44868,19078,28530,44762,30986,18042,22509,4686,45567,44674,6782)
Unknown column 'np.person' in 'where clause'