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 (44854,24411,44765,13922,45051,3,44768,17848,17009,8753,3883,37267,17556,44856,44766,34194,18794,13988,45421,18981,17904,5388,6862,44711,18446,28313,6609,14402,18650,17114,18427,45515,44640,44884,44671,44775,17335,17839,44849,19078,44866,44861,45229,28530,18652,18572,45346,19057,9341,31354,45286,13425,44764,45177,4686,18996,44873,10402,44767,17601,45516,44674,44531,24412,45518,36472,44837,44855,17981,44875)
Unknown column 'np.person' in 'where clause'