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 (44873,45277,45421,44867,24441,18427,14402,44858,17904,18572,44762,18900,44855,44766,45051,30135,44685,44894,45346,44674,44837,10402,6862,44861,18650,3883,24412,28530,18279,3,30986,18172,17278,17981,22509,18794,44854,44767,39676,45517,44868,44865,45072,44739,44764,14622,18353,45042,37057,18446,44768,44853,5388,45561,13425,34194,37267,17351,44869,44878,16885,44870,17237,44835,45229,18652,45567,4765,44687,13988)
Unknown column 'np.person' in 'where clause'