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 (14622,4765,39676,17904,32454,18572,18042,44739,17237,44835,44858,45346,17771,13425,3883,44687,17278,30963,17092,30135,8753,18301,44766,18279,44640,24411,44856,44867,34194,5388,45421,18688,44861,6875,17556,13988,44869,18286,17492,6609,9341,45516,45072,44671,4686,44685,45286,45518,18446,44878,45567,45051,17981,6782,44884,5410,17114,18652,44764,24412,28313,44875,17703,43800,17351,10402,44837,45277,44674,45042)
Unknown column 'np.person' in 'where clause'