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 (44689,4686,44856,16935,18900,44866,44854,18652,32454,44531,13922,45229,18042,6862,17703,8753,44669,45177,18427,45518,44865,44767,44861,44845,45043,44851,44884,44765,17492,13988,44873,17904,45516,18185,45051,30986,13,18794,44687,44837,6609,18446,44868,17335,9341,16885,19078,17981,45072,17835,45515,18648,3883,22509,3,44878,44764,18572,45042,44858,36472,28530,18172,28313,44870,45421,37267,18353,24438,44848)
Unknown column 'np.person' in 'where clause'