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 (18648,44768,31354,18572,17237,45567,18042,22509,45180,17848,4686,17009,24441,44854,44671,6782,13,45051,45042,44765,44863,18237,17771,45043,44764,44766,19078,44689,44856,44884,44739,44873,24412,18286,45229,45561,3883,18719,44875,6862,17981,17335,18185,30963,14402,10402,44674,17904,44837,45517,18688,17351,44845,44868,45286,45515,16885,18172,18652,44865,4765,44640,17703,18430,18981,44767,18301,37057,18996,32454)
Unknown column 'np.person' in 'where clause'