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 (18652,44849,18794,18353,44766,44867,3,45421,4686,18301,44853,45518,18648,44640,44856,34194,45517,19078,17335,45177,45043,44845,24438,18981,6609,17601,18286,18430,39676,18719,17657,45042,18427,18572,37267,18894,5259,44851,44711,5410,45072,17755,44861,9341,44674,45286,44768,45561,44870,30963,17756,18042,44685,6862,17278,45180,18237,17703,44869,13,17092,30135,45516,18185,28313,17848,6875,44837,44873,44762)
Unknown column 'np.person' in 'where clause'