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 (44674,36472,31354,44849,45262,44685,44640,4686,45177,5388,44855,44866,45051,24438,16885,44766,17756,17114,44851,18719,30963,44878,45421,45346,17601,45518,5993,18172,14402,17848,10402,9341,17092,6609,3,37057,17981,44835,17278,18185,44867,45229,17755,5259,44711,44868,18427,44865,22509,44765,18652,17657,17335,34194,17835,17703,18279,44875,18794,24412,39676,18650,14622,44884,37267,8753,44687,13425,44856,18446)
Unknown column 'np.person' in 'where clause'