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 (45567,4686,17092,44765,44863,37057,14402,44767,44884,31354,13,45516,30963,17703,44768,44711,45177,44868,45515,17904,6862,44640,17556,3883,18430,44739,28313,18900,17114,28530,18279,17527,18650,18185,19078,6875,37267,45180,44861,9341,45421,3,44869,45277,18719,24411,44875,45229,17756,45262,45517,5993,44669,44685,18172,45072,44775,43800,18446,44837,17601,45346,4765,17009,44845,13425,44849,17335,24441,44867)
Unknown column 'np.person' in 'where clause'