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 (17492,32454,6862,18894,45051,17527,44863,45561,16935,45518,17848,18427,44856,19057,44867,8753,17009,13988,45346,45180,44837,18172,44894,24412,6782,44745,44873,31354,18185,44851,44868,44845,4686,45515,18237,18719,17114,45421,44767,18430,18996,45042,44671,44853,44711,14622,44878,45516,34194,45262,17756,44849,13,17835,17703,17278,44858,44875,24438,44531,17351,44669,39676,36472,44775,17981,17771,18652,43800,6609)
Unknown column 'np.person' in 'where clause'