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,17351,17492,18286,18648,13922,44858,14402,5388,44766,44762,18650,44856,17237,44685,13,6782,45286,44765,28313,45516,30986,13425,18894,44884,3,37267,44837,17703,18572,30135,6609,14622,36472,18981,17335,44866,4765,44849,31354,45515,24438,9341,44867,17981,10402,18446,45072,45561,17904,39676,18996,17278,5259,17114,18430,17755,44875,45180,44689,44869,18719,22509,44745,18427,44775,18301,16885,45229,43800)
Unknown column 'np.person' in 'where clause'