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 (24411,44851,17839,44767,18353,17771,30986,44764,17756,17556,17114,44854,18650,37057,45180,18652,18172,18894,44674,39676,45051,18794,44775,28530,22509,18719,45567,45515,44766,45262,18648,17904,45516,17237,44671,44685,18301,44855,44765,18427,17703,28313,17351,17848,44861,17527,44884,17981,17335,44875,44837,17755,34194,5993,44856,14402,10402,9341,5410,3,44853,44845,44849,44868,44669,44640,44869,45517,45346,8753)
Unknown column 'np.person' in 'where clause'