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 (17981,43800,18446,17492,5388,18981,28530,44762,44870,9341,18301,17904,18042,45516,24412,17848,44884,17009,44674,4765,13,45229,45346,14622,44711,17755,45421,18185,17703,17114,44858,5410,18648,18719,13988,5259,44836,18279,32454,3883,45518,18172,18652,44868,18286,18996,5993,45286,39676,44531,30986,18427,17237,45043,6862,44767,24441,44837,44745,13425,44856,13922,44775,18794,8753,18237,44865,45180,44768,44863)
Unknown column 'np.person' in 'where clause'