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 (17904,18237,45421,5388,22509,10402,44762,44689,18427,18996,44768,45567,13988,44894,44869,18650,18719,44868,45561,18894,44856,44671,45180,44867,18652,44739,44853,44836,18572,17981,44745,34194,18279,5410,18430,4686,17755,18688,18900,18301,44854,45286,44878,17351,44848,18981,3883,45043,30986,45229,14622,19078,17335,44669,44837,18794,24441,17835,24438,16885,17092,43800,18042,45518,32454,28313,17114,18446,44685,44767)
Unknown column 'np.person' in 'where clause'