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 (44873,18981,14622,44689,18353,18042,44894,18650,17601,18794,45286,17771,31354,14402,24438,5410,44865,18430,17839,18719,44855,44767,45421,44685,19078,3,8753,44835,44851,44765,22509,37057,17492,28530,45043,4686,17527,17703,44674,44739,45229,5388,45180,17835,45515,18427,19057,44858,45177,44766,44671,44762,18237,18185,44687,18172,45277,17904,6862,36472,39676,44531,30135,13,45516,34194,10402,3883,17237,30986)
Unknown column 'np.person' in 'where clause'