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,17756,44856,5993,13988,18301,30135,28530,17527,44884,44836,10402,45262,18652,13,17351,24412,18237,19078,18042,14402,6782,16935,18185,17904,28313,18894,8753,45180,18279,44762,45517,44765,44854,18427,17835,44868,18648,18572,39676,45277,24438,17839,45346,44775,31354,6609,9341,18794,44835,17981,44764,18446,45561,17703,44669,45043,18719,44851,44685,17771,44878,13922,6862,44861,22509,36472,18900,17755,18981)
Unknown column 'np.person' in 'where clause'