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 (44867,45262,17556,17904,45518,44845,45286,44837,37267,45567,44870,16935,44669,44767,44878,16885,17703,44764,45180,18719,44866,17755,44836,19057,18894,6862,44894,18427,44853,17335,5388,31354,45043,18185,45042,44854,3,44861,32454,44863,18301,17278,44768,17657,18688,18981,17092,44775,13988,24441,45277,44745,45177,30963,10402,18430,39676,44884,17981,24412,44835,18279,17601,13,44766,17114,45516,24411,18652,17492)
Unknown column 'np.person' in 'where clause'