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 (17335,45042,45346,44671,18981,44849,43800,28313,44835,45516,45277,3,18900,44865,44711,4686,44856,18650,37057,8753,45421,18353,18042,24411,24441,17556,45180,17771,44858,9341,44739,18996,45515,14622,17756,44867,37267,44870,22509,44866,17527,44765,18301,4765,17114,44689,44855,18794,17351,44745,17981,44766,44854,18719,5388,17492,44894,24412,5259,39676,18185,45262,44669,28530,44836,18279,17092,44687,17904,5993)
Unknown column 'np.person' in 'where clause'