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 (44766,44775,44762,18652,17848,18648,34194,45346,45286,18301,6782,45262,44767,18430,17981,44854,44689,17835,5388,44764,16885,45229,31354,17351,17114,6875,45177,18042,44867,17904,44894,24411,17601,17092,45043,14402,17755,4686,18996,45515,18427,45051,8753,44674,44669,18894,39676,13425,44870,18185,44869,18719,45042,44739,13,43800,3883,18353,17009,44863,18900,5259,45567,28530,32454,18446,17335,18650,44836,44687)
Unknown column 'np.person' in 'where clause'