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 (17492,44767,18301,17703,17835,45516,44764,19078,19057,17904,32454,6609,17527,44869,44856,18572,17335,10402,18652,45277,44775,45286,18185,18981,45515,44689,5259,44640,14402,44711,44836,44861,6862,18894,18794,44855,45561,18279,45421,18286,13988,16935,17981,28313,44870,44671,18900,18430,44854,17755,44674,17756,44866,5410,44837,36472,17839,3883,37267,17237,4765,13425,44765,17657,18427,24411,44865,44878,17114,34194)
Unknown column 'np.person' in 'where clause'