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 (44685,13,45043,18652,28313,22509,17904,18301,45346,17351,17981,44870,44739,18981,18353,44775,18648,17556,17114,44669,44861,45180,17755,45286,17848,44835,44858,28530,6862,44873,18042,45518,44689,32454,18650,24412,9341,6609,17237,44848,24438,4765,18794,44894,4686,18286,45042,37267,18279,45515,10402,44856,44671,17335,44766,18172,44768,44837,17835,6782,44687,44849,44869,45262,44674,44878,17756,30135,17492,44855)
Unknown column 'np.person' in 'where clause'