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 (18572,24438,18279,17771,36472,44858,19078,4765,45421,5388,43800,44766,44851,14622,4686,17835,44884,18794,30135,44865,45043,44869,44739,44861,45561,18430,44762,17114,44711,44640,17703,17848,14402,44867,5993,44878,5410,6609,18996,44856,45277,44855,45567,34194,13,3883,18981,45346,18427,44775,45262,39676,31354,10402,45072,44868,44836,32454,17556,18719,8753,45051,44853,18894,44767,18042,17981,45042,44674,44845)
Unknown column 'np.person' in 'where clause'