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 (44863,45517,45561,44869,4686,13922,17114,45515,17556,44739,18996,45042,18286,39676,44531,18794,17527,44640,18279,44868,44845,44865,37267,44768,45346,17981,45051,44870,44894,13425,44765,44853,44854,3,17237,24411,30135,45177,17351,44861,17092,18427,45262,44689,6862,30963,18688,19078,45567,44851,17492,18981,10402,34194,18042,18185,43800,14402,44858,45286,17904,17703,37057,44849,44866,17771,18301,44671,28530,44764)
Unknown column 'np.person' in 'where clause'