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 (6875,44848,17657,44870,44766,24441,45515,37267,17835,28313,44867,30963,37057,4765,17237,44711,18794,18648,45346,17904,18353,44835,17556,16885,5259,18301,44745,13,44868,45518,44671,44884,13425,45043,17756,28530,18981,45042,44837,18427,3883,44531,18279,18900,6862,6782,17092,44863,17492,18688,45517,44640,44878,18286,45277,18996,8753,17009,17839,18185,44767,17848,34194,44855,18237,13922,18719,45177,6609,39676)
Unknown column 'np.person' in 'where clause'