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 (17848,5993,22509,45262,17835,45177,45286,3883,45051,44835,30135,17771,18981,45567,17981,17756,37057,3,6862,18900,44849,18279,13922,44853,44865,44851,13,44866,17527,43800,24438,14402,44836,44870,44858,6875,6782,10402,28313,18286,17092,44854,17703,45277,17237,44775,45043,18688,18427,44767,34194,17556,44640,18648,45042,6609,44875,44671,18572,8753,17114,4765,44669,44768,44766,44764,44894,18996,17904,17278)
Unknown column 'np.person' in 'where clause'