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 (44775,44762,17335,45517,6609,3,44711,45177,19057,18185,28313,44764,45262,45567,18279,18688,44870,44863,16935,18996,44894,17009,45042,44866,44853,44767,17237,9341,44837,24412,13425,17904,44835,17278,32454,16885,18042,18572,44687,45515,45421,44768,45518,17981,44689,31354,44855,6862,5993,44873,44851,17835,45561,18427,44884,18430,8753,44856,30963,44765,17848,18650,39676,44869,45277,45180,44858,24438,10402,44867)
Unknown column 'np.person' in 'where clause'