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 (17237,3,6609,44894,24411,17278,18286,44849,45567,45229,24441,16885,18185,17756,5993,45177,19057,9341,45043,13922,44855,14402,45180,44854,45346,45515,44765,18648,45262,18572,5259,6782,18042,44853,17839,17527,17981,45421,3883,18446,44884,18900,44856,44836,44764,4765,30986,18652,30963,44851,45561,17657,18688,45286,18353,45518,45051,17351,17904,32454,16935,37267,18981,44870,44674,18996,44868,44858,39676,22509)
Unknown column 'np.person' in 'where clause'