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 (18446,28313,17835,13922,18427,4686,18185,17756,17904,18981,17657,37057,18301,13425,24441,45072,44867,44856,10402,44764,44835,6862,17556,17114,18286,17703,44884,44689,14622,44837,18688,4765,44766,18430,44870,24438,18572,17755,44669,44768,18237,5410,44848,5993,44855,16935,45421,5259,18900,45051,37267,44767,44711,44865,17351,17237,44836,45229,18652,31354,44858,28530,45516,44849,39676,44868,45517,45346,44775,22509)
Unknown column 'np.person' in 'where clause'