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 (8753,18652,6782,30135,45042,5993,17904,45346,44894,44671,16935,44689,13,17092,17981,44856,18353,44768,3883,17755,17839,17835,9341,45421,14402,28530,30963,17556,44866,44851,44868,44669,44845,44674,45518,18185,44766,24412,4686,45180,44865,17335,44848,18042,18172,44687,18430,5388,44873,5259,10402,45177,36472,44867,18719,18650,6862,44762,44863,18996,44767,17848,44765,44875,17527,44870,44640,45516,44853,44739)
Unknown column 'np.person' in 'where clause'