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 (16885,44674,44867,4765,18650,45043,18301,44870,17904,3883,44669,44685,39676,44851,44866,45177,45567,17601,5993,17114,34194,45516,5259,44745,45286,44768,18652,44764,44861,18446,43800,45346,45515,44739,18981,19078,44865,44873,17835,18427,18353,13,18185,14402,17703,44853,45072,18430,28530,17556,44671,18719,44687,37267,6782,44863,45561,44854,18237,18894,44766,19057,17527,30135,45421,45051,44762,17848,44835,44836)
Unknown column 'np.person' in 'where clause'