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,44884,44855,18353,17657,44869,44767,18301,14622,24441,44878,18185,4686,43800,44875,44856,44671,6782,13,44775,18648,18794,44851,5993,18430,9341,17527,18279,44853,44868,45262,44711,18996,44689,45518,18688,17756,6875,10402,45180,17556,30986,17237,17771,17835,18652,44873,18042,17278,45516,5410,44764,44669,18900,18172,17009,17981,31354,44894,45177,18719,36472,3,17092,44863,30135,39676,17755,28313,17601)
Unknown column 'np.person' in 'where clause'