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 (45561,5993,17335,5259,17835,45517,45262,4686,18894,6875,44685,44836,13425,13988,17848,44869,17703,4765,45277,28530,17657,14622,45072,18427,44870,17904,17351,44867,44854,18650,18301,44765,17237,44861,24412,44767,18996,44863,44711,44884,28313,6862,17756,44837,44856,44868,13,6782,45180,18237,44853,39676,44848,17771,31354,44531,43800,44762,30986,44766,44894,18794,45567,44745,45516,19078,44873,45421,17981,17492)
Unknown column 'np.person' in 'where clause'