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 (45515,18446,17601,18719,17904,44867,44866,44868,44884,44856,44855,18185,18652,44669,30986,6782,14622,44869,44764,14402,37057,45286,44851,45346,28313,18650,18427,32454,18688,6609,5410,18981,16935,45516,17848,44853,18430,17771,24412,16885,44768,17092,17009,17657,44894,19057,44671,17527,18572,44767,6862,18172,30135,37267,44873,17755,44766,24411,17351,18794,9341,10402,5993,34194,44848,18353,44849,43800,17703,44858)
Unknown column 'np.person' in 'where clause'