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 (17601,18996,18279,6782,44836,18427,18042,44894,45180,9341,18794,44867,45561,36472,30135,13425,5388,44868,39676,5993,4765,32454,16885,45177,37267,44745,44861,18648,18353,44870,24411,17756,44873,31354,30986,18650,17981,18446,44865,44835,45262,17771,44671,17839,17237,45515,44674,17335,45567,19078,18981,44875,18286,44869,18652,44856,44766,45277,17904,45421,17527,18172,24412,44853,45346,18572,44851,44765,6875,18185)
Unknown column 'np.person' in 'where clause'