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 (9341,44669,28530,44848,17009,34194,37057,10402,17335,45518,4765,6782,44855,24411,44849,44845,44853,44768,17601,18648,44884,45180,18996,30135,18572,45277,18894,44775,39676,45515,13922,18981,18652,45517,17114,44766,17351,18279,4686,44711,45051,14402,44739,5410,3,44861,17092,44854,44765,30986,18688,17904,17278,44767,17848,19057,17237,17527,6609,44868,44863,44870,17981,45286,44764,16935,28313,44851,17703,18286)
Unknown column 'np.person' in 'where clause'