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 (18042,39676,4686,3,28313,44687,17492,17114,24412,17237,44868,44739,44767,44863,17351,45277,18572,17278,13425,44858,44869,10402,30135,44775,18794,22509,37267,3883,5410,18981,34194,44764,17904,44855,45042,14622,18185,13,36472,44894,18427,5259,44640,17335,44866,16885,30963,45561,17703,13922,6782,19057,44856,45262,17092,45043,17755,45515,18237,44766,44875,45072,17981,44865,44671,44867,28530,4765,45229,17839)
Unknown column 'np.person' in 'where clause'