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 (17556,17981,44875,18286,44674,44767,44853,45517,6782,19057,19078,22509,45051,18427,37267,17527,17237,45042,18996,44837,4686,17335,44854,5410,17771,24412,17703,8753,44745,18042,44739,13425,13,17835,44870,17492,17351,44867,18794,45262,18446,18900,34194,44868,44669,5388,44765,18185,17756,44775,6609,18172,18353,44848,3,17839,39676,17278,18894,44851,45515,18430,18652,17092,44685,17848,17657,18688,4765,18648)
Unknown column 'np.person' in 'where clause'