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 (17771,17756,24412,16935,18301,44870,30986,44739,17009,44764,45421,45042,44867,18172,45346,18042,17755,8753,45051,17839,13425,17703,45180,44674,44745,44853,44766,18237,13,44669,44869,30135,18652,18794,9341,31354,45515,17092,18981,17981,45517,45229,17904,44856,44884,37057,44689,36472,18430,14402,44866,44851,44875,44878,39676,18572,45043,22509,44837,28530,43800,45277,44865,18427,13988,44858,18900,17835,17601,44836)
Unknown column 'np.person' in 'where clause'