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 (9341,45180,45518,6875,5259,44884,44861,17703,44869,17009,17527,5410,18719,45042,45515,17335,18430,45043,44835,6782,30986,6609,18648,28313,17755,44853,14622,44640,18427,44766,44674,45051,45277,4686,45229,45346,45561,45072,16935,14402,45177,19078,45421,44775,17756,44867,44848,18185,17351,45517,44854,44856,18652,19057,30135,17278,44836,44878,18996,44768,31354,44858,18172,37057,36472,18237,5993,37267,17092,44764)
Unknown column 'np.person' in 'where clause'