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 (44837,44685,39676,45516,44868,17351,18042,44856,17771,44765,28530,45346,17657,44858,45517,28313,8753,44849,17492,18446,18996,37057,45286,37267,30986,45072,4686,44861,44764,6862,17755,18430,18427,17848,5388,18894,44873,24411,45262,18185,44853,3,44531,17237,10402,5993,17904,14402,5410,17981,45177,18652,14622,18279,6609,31354,18353,45051,17009,44867,5259,17703,19057,18981,17114,44894,45180,44878,44768,16935)
Unknown column 'np.person' in 'where clause'