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 (18353,44765,44854,17981,44766,17527,18794,9341,14402,44835,45180,17848,14622,4686,45346,44745,18652,17771,3,17657,45262,44851,30963,17335,45515,45567,44858,44849,13,17835,13922,30986,17278,28313,44870,16935,17351,24441,18981,44836,44767,45517,6875,8753,18900,17839,5410,44868,17703,44869,17756,17114,44861,45277,32454,18996,5993,18430,39676,36472,13425,44764,45229,44867,18237,18301,18185,44531,6609,10402)
Unknown column 'np.person' in 'where clause'