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 (44689,45517,28313,18446,30986,44835,6875,44869,4686,44875,44856,45567,17981,17527,18172,44765,24438,17755,18996,17237,44873,44849,45043,22509,44853,44845,19057,17009,44836,18981,44851,45516,37267,44854,44865,4765,18894,10402,17092,45229,45262,44669,45518,44861,44870,39676,17835,17848,43800,17351,44531,45286,18301,8753,5993,44766,18427,44764,32454,9341,44867,14622,6862,13425,17556,44894,17904,44866,6782,18648)
Unknown column 'np.person' in 'where clause'