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 (18301,30986,44745,45277,17755,44767,17904,44848,19057,43800,44868,44765,13922,44853,13425,3,44870,17981,44837,44851,17756,5259,45042,45262,28530,17114,44894,44685,24441,10402,44873,18172,18279,44689,17335,18981,18719,16935,18427,5993,28313,44856,31354,45051,18572,14402,18185,8753,45346,45180,5410,44766,44869,24412,17703,45516,32454,17492,34194,18652,45286,44762,45515,18286,30963,37267,45177,18894,17839,18648)
Unknown column 'np.person' in 'where clause'