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 (44856,44853,45567,17756,5993,28530,45042,14622,30986,44894,44848,8753,34194,18185,44868,44766,30963,44869,18981,39676,17981,18650,45346,18794,44858,5259,4686,18900,44640,28313,43800,13922,44854,44849,17114,18996,44861,9341,45286,44836,44671,3,24438,45561,13425,44767,44875,44851,18353,18286,17703,45262,6609,18427,5388,44687,45043,6862,18648,37057,18172,44689,14402,17527,45515,17904,13988,24441,17351,18652)
Unknown column 'np.person' in 'where clause'