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 (17755,39676,45277,45043,44894,44867,18794,44687,36472,17981,45042,44837,18572,17335,18430,45516,17756,18042,44868,45072,28530,18650,18427,18353,17527,17237,4765,18648,44854,44685,30963,44674,5993,44836,44855,17904,18279,17771,44853,44671,4686,6875,44762,44775,17278,17703,17657,17601,45517,44689,9341,17492,44875,3883,8753,45051,44851,45515,44861,19078,44768,17092,44870,18446,24412,17351,44848,18652,44849,6609)
Unknown column 'np.person' in 'where clause'