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 (17835,45516,17556,14622,8753,6609,22509,45072,45180,44854,17904,44837,45177,44884,44765,4686,16935,17755,32454,5388,18719,17839,44873,45346,24412,17237,44669,28313,17009,44762,34194,17335,45229,18430,17703,3,9341,44865,44870,18650,45517,44866,18286,44849,39676,44766,44671,13,43800,31354,24411,45262,17092,3883,44835,44875,18427,18279,44848,44894,44685,44768,10402,6862,18894,6782,18648,17527,24441,45277)
Unknown column 'np.person' in 'where clause'