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 (6875,17703,17278,44878,18427,18794,44867,18430,18301,17848,45262,28530,45229,5993,45043,44775,44762,44894,18688,44685,36472,19078,17755,24412,44856,22509,17657,13425,44845,24441,44531,17601,17771,37267,45042,44766,17237,17556,45421,17835,45277,44765,5410,44849,45515,18650,44870,6862,44853,18572,3,45567,44711,44868,18900,17527,30963,17114,17335,44858,44884,18237,44689,13922,17981,39676,44669,18286,18652,9341)
Unknown column 'np.person' in 'where clause'