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 (37267,37057,18719,44768,4686,44869,30135,17981,28313,44875,13,44766,10402,44856,17092,6862,44858,28530,17556,44671,44854,18301,44866,17237,18981,5388,44531,44863,39676,44765,45277,6609,18894,13922,17335,17527,45346,18286,44739,18688,13425,45072,45043,18237,17601,14622,18279,18572,18353,45567,17848,44870,6875,45517,17835,44848,5993,30986,44867,17009,44849,45262,45561,44745,44868,44689,17755,44853,45515,8753)
Unknown column 'np.person' in 'where clause'