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 (17351,18996,45042,3,36472,44836,5993,44671,18042,18430,18719,44878,44867,45421,34194,44855,18648,18894,17835,44866,44837,44868,44689,37267,17904,18900,45567,18172,44870,17981,18572,18652,44849,6862,18286,16885,16935,31354,3883,28530,44767,39676,17492,24411,44873,44531,44768,18237,45515,18446,6782,44869,45072,13,18981,13988,44640,45180,17703,45051,18185,37057,30986,13922,18688,17237,10402,19078,18794,4686)
Unknown column 'np.person' in 'where clause'