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 (17492,44711,17771,3883,44768,44867,18301,18572,18652,45177,18981,6875,44765,17527,44855,45277,45072,17351,45421,45051,44640,30963,5388,45567,17278,18279,18794,17848,44861,44873,18650,45346,18996,4686,28530,17335,9341,17981,34194,17835,37057,44854,44836,17904,44866,44762,44837,18894,13988,44851,30135,18648,24438,44767,44865,14622,6782,44856,18237,44835,37267,44531,44868,18185,45180,30986,45515,36472,44745,24412)
Unknown column 'np.person' in 'where clause'