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 (44531,16885,17755,10402,17351,18430,45042,17835,17756,44884,44711,30963,6782,5993,44865,39676,18650,37057,13922,44764,14622,5388,18172,3,45421,17981,24438,44870,45346,18688,17848,17114,17839,43800,44849,44762,44640,44687,44766,44868,44894,4686,44858,17556,17703,45229,45277,44685,18648,18042,18446,18996,19057,44854,34194,18353,18427,5259,44767,8753,17492,13425,44768,18652,44866,45515,45516,44861,45262,18185)
Unknown column 'np.person' in 'where clause'