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 (45277,19078,28530,22509,45346,45518,44851,3,18652,44878,45180,44689,17848,18996,44669,44531,44836,18237,18794,17755,44873,17009,44766,44884,30986,18427,37267,45177,45421,44640,18185,13425,17703,5993,17492,45042,44775,6875,44856,17981,17351,45517,44870,5410,44875,44739,44685,44671,18286,32454,17114,18279,44848,18650,16885,14622,18719,18172,17835,43800,18572,4686,17657,18900,44868,45051,18430,14402,44687,17527)
Unknown column 'np.person' in 'where clause'