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 (44768,45346,17527,44865,44894,18996,18719,13922,5388,44711,18688,17904,5259,44848,44775,14402,17114,45515,45051,44674,36472,44640,19057,17839,6862,28313,44765,14622,44866,44869,17755,44856,44764,44766,45286,17756,44849,17009,37267,17848,45177,44689,24438,18427,5410,16885,45277,17492,45072,18430,31354,44870,37057,45262,6875,3,18446,4686,44878,44671,44739,13,44868,18279,44767,18981,18572,30986,10402,17351)
Unknown column 'np.person' in 'where clause'