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 (44875,44745,32454,17703,17839,44856,30963,18688,14622,9341,18042,17492,45262,17756,44894,44868,18185,17904,44884,44853,24411,45516,45517,13988,5993,17009,5388,44861,18172,44767,17114,44775,13,17335,18427,18446,28530,17237,17657,44768,39676,30986,44851,8753,18652,45346,17835,43800,18650,45177,45051,19078,44674,30135,18279,44766,28313,45180,45072,14402,18719,45286,44855,45229,18981,18353,18996,44849,6875,6609)
Unknown column 'np.person' in 'where clause'