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 (17335,17237,17527,17351,18430,18719,44849,18172,44689,44875,9341,18446,3,5993,17904,36472,44878,44837,6782,44685,44640,44854,19078,44853,44674,18981,24441,44869,17848,39676,17835,45286,44868,44766,45051,44671,44669,45229,44711,17556,18042,17839,5410,14402,34194,18185,45421,44861,44768,28313,44866,17703,6609,44855,44870,43800,18794,18894,44764,17492,4686,19057,18688,45262,18650,28530,45072,45346,44767,45517)
Unknown column 'np.person' in 'where clause'