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 (4765,44765,6875,19057,5993,44671,6782,18446,45346,30963,45567,44865,6609,18353,17092,44764,43800,44855,5410,28530,30986,4686,44869,45177,44849,44762,32454,44775,44854,18688,17335,17492,8753,45518,9341,44768,17848,44836,44870,17278,45561,44835,44745,45515,45262,18794,45229,18185,45421,24441,45043,17114,17835,37057,17904,6862,44866,30135,44894,45277,44767,45516,44878,28313,18172,18427,18996,17755,18572,39676)
Unknown column 'np.person' in 'where clause'