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 (17351,28530,44768,32454,44851,17114,18900,18446,44640,18650,44767,17755,45286,17601,44894,44765,6609,44865,13922,17092,44855,45517,5388,45567,44671,4765,44762,18301,28313,39676,17237,44849,44685,44884,44711,3,17703,17527,44835,44669,17009,45177,19078,6782,31354,16885,24441,24412,30135,44869,8753,45346,44867,30963,44863,18794,17756,18996,18648,17904,17835,18652,18042,44848,18719,44866,44687,17981,37267,5259)
Unknown column 'np.person' in 'where clause'