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 (18996,24441,17601,17835,45177,45517,6862,44867,10402,45262,45518,24411,17904,44855,37057,44764,44711,18185,17527,17092,45180,17278,44669,17114,17981,6782,44845,45516,44765,44866,5259,18719,18430,45286,44884,9341,18446,17009,44837,18652,30963,6609,43800,45346,17756,44689,17335,45229,44674,45515,44861,45567,44854,17237,18981,45421,18286,44873,18894,44863,34194,28313,44767,17492,44671,13,5410,44875,44762,17556)
Unknown column 'np.person' in 'where clause'