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,44870,24438,5259,45262,17835,45421,37267,8753,45286,44835,18353,6609,44762,44851,44854,6782,13988,45043,45051,44867,18648,9341,44765,18900,44775,17601,18650,24411,45518,39676,44669,44878,5410,44711,44861,43800,44768,17981,17771,44853,45277,18572,3883,18446,13425,44671,5388,44849,18237,17756,44866,18427,17904,16885,45177,17351,44868,44894,17237,18185,17527,18996,18794,44687,44767,44531,44640,44858,19078)
Unknown column 'np.person' in 'where clause'