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 (17904,24412,44739,17492,45180,6609,44858,18279,44671,44767,44867,44894,17657,45177,44764,44837,17848,44836,44674,17755,18652,44878,30135,44861,3883,17771,44765,30986,6782,34194,44687,45518,18900,45051,4686,28313,44856,44875,9341,45421,17237,44768,44873,45262,44866,5259,17335,17835,18996,39676,18688,17527,44884,3,45229,17839,18572,44531,44685,13425,44868,5410,31354,17981,44762,18286,19057,13988,44855,13922)
Unknown column 'np.person' in 'where clause'