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 (45567,45516,44866,44762,18688,44878,44849,31354,44867,44856,45515,45043,13425,24412,45517,44671,17904,44853,28313,6875,18301,44875,44531,17755,39676,17278,17092,17756,44765,18353,45346,5993,44687,18996,14622,44868,45072,4686,44837,44861,3,19078,18794,44689,18430,17981,13922,18981,18652,28530,32454,17335,17703,17848,13988,18719,30963,17114,45421,30135,17556,37267,17601,18172,45277,18279,44855,16935,10402,13)
Unknown column 'np.person' in 'where clause'