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 (16885,45051,6782,45229,17839,44766,17771,44866,18894,39676,44845,24412,14402,17114,8753,17755,10402,44640,17351,3,17904,28313,5388,44867,44775,44671,3883,44869,30963,45286,18900,44835,18353,34194,45515,45043,18572,13988,44711,6609,44884,36472,44873,18981,44865,44745,18652,17278,16935,45346,6875,18446,44848,24441,18427,17835,13425,44870,17848,17492,45177,45262,45518,44856,18648,9341,18650,32454,45517,14622)
Unknown column 'np.person' in 'where clause'