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 (17092,18427,37057,44861,44856,17703,8753,18648,18719,18894,4686,18430,24438,32454,18572,17756,44764,14622,18996,45043,18688,28313,44669,45515,44884,34194,17114,17009,43800,44878,45561,6862,17904,14402,44848,18353,17981,18042,44671,17278,44836,13,16885,17755,17237,30963,45567,44687,17492,44873,44851,36472,45262,44868,45042,18185,17839,45277,18794,6875,5993,17657,3883,13922,44765,17335,44768,45051,6782,5410)
Unknown column 'np.person' in 'where clause'