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 (17835,44640,45346,30986,44848,5388,44674,17492,45518,18996,18688,17755,17114,22509,45516,45567,37267,18301,44869,17904,14402,44766,17237,18652,18042,44745,18446,44873,45177,44775,45421,18648,5410,13,18427,13922,10402,44851,13425,45286,44837,45180,45277,44739,17009,17703,44531,45517,44875,18185,45072,44767,18981,19078,17351,17527,13988,44768,17556,18900,45229,18286,18430,9341,17981,18572,44870,44884,37057,3883)
Unknown column 'np.person' in 'where clause'