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 (30986,31354,18185,13922,45262,13988,24438,3883,45042,17335,18652,44875,44766,18279,44745,44867,4765,44865,44765,44861,44767,44671,45518,45515,3,18042,44854,45043,45229,44768,17492,45346,24411,17601,44858,44775,5993,17237,36472,28313,19078,10402,44869,18894,44884,45517,44866,17981,45561,44853,17839,5410,6782,44873,17527,22509,28530,45177,44870,45516,18172,17092,37267,9341,17278,18427,24412,45180,44669,4686)
Unknown column 'np.person' in 'where clause'