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 (6875,18794,17904,44849,18185,17981,44674,19057,44835,44868,43800,45072,44837,18427,45042,17601,3,18446,44739,44854,10402,17351,45517,5259,17839,45180,6862,45567,44689,17114,5993,3883,44878,18301,44531,17092,6782,44766,37267,18353,34194,18286,44867,45516,28530,44861,9341,39676,17703,30986,44863,17527,18648,44745,45346,18688,13988,18572,18652,18900,17237,44640,44870,45051,44671,44768,16885,18996,17755,13)
Unknown column 'np.person' in 'where clause'