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 (5388,45262,17703,44767,44837,13425,44867,17092,44835,13922,34194,45518,44854,45051,44851,17835,44765,18719,5993,32454,18981,44868,44849,6862,37267,45072,17527,44870,18430,30135,39676,45043,17848,44775,10402,44858,30986,24438,44853,18279,28313,6609,44764,18353,4765,44894,8753,3,44711,17351,18894,17904,28530,30963,24441,44671,17492,18172,4686,36472,18688,18301,45567,14622,18648,17114,18237,18286,44848,24411)
Unknown column 'np.person' in 'where clause'