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 (17981,17335,44848,17848,19057,19078,43800,17756,18279,28313,10402,44875,8753,37057,5993,44867,24438,17904,45229,4686,6862,17351,44739,45286,44868,45043,24411,18353,44765,45515,17657,44849,9341,17771,30986,18572,18185,18981,16885,13425,44870,44767,17703,13922,18172,44669,17601,44845,45561,28530,45072,44745,44884,6609,17237,17114,32454,34194,22509,45277,3,44766,44837,44858,18648,17835,17755,18719,45180,44851)
Unknown column 'np.person' in 'where clause'