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 (17904,44835,3,17835,31354,44764,44866,30135,45262,37267,17839,45051,44894,17703,44867,18652,13988,44849,17981,44863,44674,16885,44687,17755,44856,19078,17335,28313,18688,44765,18719,44878,45072,45567,5410,44711,44671,18900,44851,18185,5388,18648,24411,44869,17848,17092,44868,44762,45042,18172,44861,17351,45421,44848,18794,8753,18996,45043,30963,17114,44739,6782,18650,44875,17657,4686,30986,45561,18427,44685)
Unknown column 'np.person' in 'where clause'