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 (18301,44856,44671,45346,30986,22509,18900,17981,14622,45277,5993,3,18237,44845,8753,45180,5259,24438,30135,44711,3883,45042,18042,17904,45072,44873,44861,44869,18650,44870,18286,44858,18427,36472,44894,10402,17114,39676,44685,17601,44767,45177,45286,44884,44765,17092,28530,17527,17237,44878,45518,17335,18688,6609,4765,17556,45515,45567,13425,18719,44836,17703,44868,45517,45421,18572,44863,6875,18981,17351)
Unknown column 'np.person' in 'where clause'