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 (18650,3883,44858,44866,44766,45517,6875,17278,19078,18430,18572,18996,3,44775,44870,17114,17839,18719,14402,44767,44853,17981,17755,44854,18794,22509,44764,44851,17351,10402,17335,45180,44640,18427,44837,45229,17092,8753,18688,30986,44674,17009,18042,44869,45177,44739,4765,44855,13425,44875,44884,44836,17657,44835,17771,18981,44689,45051,19057,45421,17556,39676,45043,44861,18652,17756,44669,14622,5259,44685)
Unknown column 'np.person' in 'where clause'