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 (17848,17703,44878,13922,44836,44711,44894,45051,45421,44764,18794,18650,5388,17904,24411,18572,45180,18981,39676,18430,44854,18688,44849,19057,17492,18900,18172,45286,22509,44767,44851,18446,18279,18652,43800,44870,45515,17556,17335,44868,44863,3,44858,24441,24438,45516,17278,13,17009,18427,14402,44873,45072,18996,44856,18237,45262,18719,18286,32454,37267,31354,17527,17835,14622,16885,30986,44861,45561,44640)
Unknown column 'np.person' in 'where clause'