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 (17657,17556,17771,44835,45042,45043,18648,18172,45262,17237,17527,17848,30986,30963,44856,17278,44765,24441,5410,44863,18042,18688,44855,18894,44870,22509,18981,45516,32454,44674,44867,17755,34194,9341,45515,19057,18430,18286,44875,8753,45051,44640,45180,6609,45177,30135,17981,44711,37057,18353,24438,10402,18652,18719,4765,17835,44531,17114,44836,44745,28530,18237,44854,18185,17351,18794,13,44851,18996,13425)
Unknown column 'np.person' in 'where clause'