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 (44851,5993,44878,18185,14402,18279,44685,18900,17703,5410,18794,18652,19078,28313,24412,45561,45262,18446,18981,18719,45567,18172,24438,44863,37267,44858,44870,44861,44868,44739,45042,19057,44866,17657,43800,14622,44865,44765,44711,44674,17904,37057,17771,17981,44768,3883,17835,45286,8753,44767,45421,17092,44669,17114,44766,44884,4686,45051,44856,36472,18996,30986,4765,18353,3,18648,17601,44849,18237,17848)
Unknown column 'np.person' in 'where clause'