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 (18688,17703,45177,44858,45516,44674,9341,44870,17492,45517,10402,44766,17114,37267,18648,17835,17335,18042,18301,13425,44851,18430,18981,45518,18996,44767,44884,24411,44849,17848,44739,44894,17981,13988,17278,45042,18427,17771,44878,4686,18719,16885,18652,44856,44855,39676,17904,30986,18446,17527,44854,44836,18572,44869,45561,6782,3,44845,5388,44640,6875,44745,44848,44765,5410,44768,44689,17237,22509,17756)
Unknown column 'np.person' in 'where clause'