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 (17492,17756,24441,45286,44767,45516,44866,45043,17351,44868,17335,45421,17009,18981,44873,17237,17278,17556,37267,44863,13,3,44837,44739,28313,44711,3883,13425,18172,45518,44836,44640,45567,5410,44865,31354,36472,19078,45177,45042,17904,44674,44669,16935,6875,44745,44768,24412,18900,18794,17527,17703,18279,44869,44870,44775,17657,18572,13988,44858,44851,45072,44849,45262,37057,18719,17981,18430,17114,44766)
Unknown column 'np.person' in 'where clause'