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 (28313,18172,44855,44674,44858,24411,45518,17492,45229,17556,18981,45262,45346,44865,17755,18279,44766,17601,10402,17657,13425,44685,44870,44640,5993,45177,44848,6862,44836,44854,17114,30986,45516,18894,44669,39676,13,44711,45042,3883,44873,18688,37057,18042,44868,16885,5259,14402,34194,44767,4686,16935,44867,17981,18185,45286,44869,24438,18353,4765,44764,44866,18996,36472,18794,18446,44837,45421,44861,44878)
Unknown column 'np.person' in 'where clause'