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 (18981,18648,44865,17771,18572,45516,6862,24412,44764,44762,18185,44875,14402,30135,17335,3883,17981,44765,44854,9341,44845,44855,44869,18794,5410,17527,17904,13922,18279,3,30963,13425,17556,44687,44674,44868,44894,18446,17835,28313,44835,8753,17114,45043,45229,44851,5259,17756,45072,44766,18286,4686,44867,18652,44848,18719,17492,19078,18353,45042,37267,44689,17839,44849,36472,44671,44861,45180,16935,45567)
Unknown column 'np.person' in 'where clause'