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 (24438,17527,44669,10402,16885,44849,44766,45051,36472,45561,17335,18237,31354,17092,18652,18446,3883,44711,13,22509,45516,44775,44878,32454,30986,9341,17835,44856,45042,24412,18719,17114,45177,13922,44854,6782,18427,5259,6862,45346,13988,18172,17756,4765,28313,44836,37267,44875,39676,44835,6875,17237,44851,18286,18185,44765,45229,30135,44866,17556,18981,44767,44853,44873,13425,44837,19057,17839,5410,18794)
Unknown column 'np.person' in 'where clause'