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 (18430,44835,30963,3883,17771,17755,8753,18237,18648,44849,18446,18794,34194,6609,18894,13988,44669,17114,44711,16885,30135,18286,44868,45421,18652,18279,19057,17601,44873,18688,6875,44856,14402,18900,28530,5388,24411,45042,3,44671,44866,44739,6862,44854,45229,17556,18981,18185,17492,45277,18719,44640,44766,45346,18996,44768,18042,5993,5410,44851,36472,44875,28313,10402,44867,44865,18427,44858,44878,44845)
Unknown column 'np.person' in 'where clause'