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 (28313,45515,44671,18996,45516,44863,17755,18172,44869,13425,17237,17703,17839,18894,44766,45177,18042,44873,19078,44856,6609,45277,18427,44768,24412,44848,44894,44711,24441,17835,5259,45043,17335,44867,24411,45421,44861,18237,31354,45042,45346,44866,34194,32454,44765,44837,44849,44870,5410,45180,44845,22509,44531,44858,30986,44767,18185,4765,19057,17092,44868,18353,44835,18286,45051,3883,18430,44685,44853,17009)
Unknown column 'np.person' in 'where clause'