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 (17657,13,13922,5388,44866,45229,6875,28313,17351,6609,44854,17981,17237,44531,18185,18042,18353,17527,5993,18279,17835,44765,18900,14622,18648,18286,44868,44873,45286,44671,45516,18430,18301,17114,30963,44870,18427,18719,17771,45277,44739,16885,18794,44745,44766,44856,17601,45346,30986,45072,44768,44851,17755,18172,45515,45042,17335,3883,43800,17556,44858,24411,18981,31354,17904,44894,17839,44848,37057,17092)
Unknown column 'np.person' in 'where clause'