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 (17092,45180,44845,44867,44745,17492,24438,44894,44870,44689,44765,18688,44767,18185,17114,45072,18286,44766,16935,18794,45517,17904,13,5259,18894,18719,24412,44711,44868,37267,34194,4765,44861,44875,17527,9341,44685,18427,44855,44762,44849,5410,44835,17335,37057,18652,45561,43800,44674,45043,44884,44687,45286,44640,45051,13922,5388,44837,18996,44865,44669,45042,44851,30135,17703,44531,44856,44878,39676,44775)
Unknown column 'np.person' in 'where clause'