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 (44739,45567,18996,44711,45177,17657,44870,17278,28530,44894,44845,9341,44853,17904,44878,18894,45515,36472,39676,17835,44767,17527,19078,44837,4686,28313,17492,18900,18688,8753,18981,31354,5388,44875,45043,44671,45277,6782,6875,18279,18430,4765,44866,44855,45262,18237,17601,18286,17114,30135,16885,24412,10402,18301,18446,17009,44861,17981,44640,44856,5259,44836,18648,18572,37267,44867,44868,30986,13922,24438)
Unknown column 'np.person' in 'where clause'