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 (45516,24412,44775,44768,45518,5259,45286,17904,44762,6609,45561,44689,44766,18353,17335,24411,18794,36472,44866,17756,17527,5410,13,44671,17092,9341,3,28313,45262,44848,18301,6862,44837,44867,45346,18172,3883,44745,44739,16885,45421,17835,44878,45051,18185,4765,18996,30963,17556,17981,5993,44854,19078,44873,37057,24438,5388,37267,45229,45042,44861,31354,44853,18652,44687,4686,44669,17703,24441,44674)
Unknown column 'np.person' in 'where clause'