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,18185,45043,17351,17556,44873,13922,45346,44858,44531,18301,45177,44669,44762,4686,44711,44775,44768,37267,45515,44835,17009,6862,24412,44863,45518,18719,18996,18427,44853,44837,17492,45042,36472,16935,18648,18279,44868,44869,28313,45229,14402,45421,18430,18237,18172,44861,34194,5993,44766,44849,19078,17981,44848,18900,18794,45286,44845,44884,17771,32454,17848,44851,39676,44764,17335,44640,30986,4765,44894)
Unknown column 'np.person' in 'where clause'