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 (45515,17601,18719,18427,45043,14402,6875,5993,30986,44669,18301,44845,18172,45042,44767,44837,8753,17527,44762,44884,17904,18688,36472,34194,44868,44739,18430,44849,17848,18794,6609,24441,16935,44764,17492,39676,18648,18286,5410,30135,18446,45229,18237,28313,44689,45051,18650,45072,18185,24438,18572,18353,6862,17335,44853,17756,32454,18981,45567,18042,44875,17981,44894,44851,17351,44878,16885,17237,5388,44671)
Unknown column 'np.person' in 'where clause'