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 (18427,45277,44894,18719,45515,39676,17092,17492,17601,4765,19078,5993,17904,44767,45518,30135,45229,32454,44873,17556,31354,3,18572,17848,5410,17756,17009,24411,45567,22509,9341,18042,44765,17839,30963,45051,17278,13988,17981,44674,44849,17527,18650,44739,17114,18794,17771,6862,18688,24441,44865,44640,6782,44884,37267,45346,10402,18996,28313,45043,44775,44845,44861,44866,18185,17335,17351,5259,18301,44766)
Unknown column 'np.person' in 'where clause'