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 (32454,44849,10402,44866,19057,18996,44875,44764,30135,44762,44855,44765,45517,4765,44775,17835,18650,19078,18301,45043,17657,45286,45567,6609,17848,44836,17335,5410,18237,18794,18430,37267,44851,17527,17981,6782,24441,17092,44858,39676,45346,44894,45072,14622,44766,45515,3,17278,16885,6875,17703,44671,13,18652,17601,5993,36472,18042,17756,18648,18185,3883,44640,45262,28530,4686,9341,17351,17556,22509)
Unknown column 'np.person' in 'where clause'