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 (34194,44878,18996,28313,6862,44858,17492,44861,17114,44869,4686,32454,18427,16885,45421,17556,18042,45515,16935,44845,5259,44884,44739,44875,18652,44853,45072,39676,44894,44766,45346,45516,17092,17351,44837,18981,44767,17335,13988,17657,44765,18185,44868,8753,44835,17904,19057,24438,24412,18446,18572,44863,45051,18650,10402,28530,18172,45043,6609,5410,3883,44764,44854,45286,44640,18237,18719,44836,17755,13922)
Unknown column 'np.person' in 'where clause'