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 (4686,13922,37267,18572,44689,45517,17839,24411,17981,17904,44866,17556,37057,44894,44867,18237,44669,18172,17351,18648,44835,28313,44764,45518,14402,18996,44853,44870,24441,19078,24438,9341,44855,18279,44674,44868,6609,44837,18430,17237,18900,14622,44739,13988,18427,17092,45262,18353,10402,44854,45229,17601,17835,18794,18688,44878,44671,44858,19057,18185,45072,18981,18301,5388,34194,45180,44873,3883,18719,44851)
Unknown column 'np.person' in 'where clause'