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 (44739,18353,45229,45051,18650,18719,18900,44875,18042,44767,45177,16885,44870,44858,24411,19057,18427,17492,45072,28313,44866,6875,17092,4686,44768,45561,19078,44867,44861,44674,18894,18648,24438,18301,17335,44775,44851,44766,24412,37057,6609,30963,45421,18996,18981,6782,17904,17601,17237,13425,16935,45042,44865,44764,44894,17527,44855,39676,45567,18237,43800,34194,4765,17835,3883,17839,44868,45262,8753,18172)
Unknown column 'np.person' in 'where clause'