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 (17527,45286,44765,17335,18446,18353,3883,44870,18996,18900,18430,45177,18172,17848,44866,45517,17237,18794,16935,44894,44861,17981,18688,36472,44865,44851,44640,44869,5259,32454,6782,17278,17835,18572,44762,30135,18981,44878,16885,18652,4686,45042,5388,17904,17556,44873,9341,44863,22509,44854,3,28313,18042,19057,18185,14402,44858,17092,17351,45346,45518,44849,18237,18894,30963,24441,44868,44848,19078,17771)
Unknown column 'np.person' in 'where clause'