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 (16935,44894,37267,6862,17092,45180,44835,44640,17278,30963,18185,13922,44531,18996,44855,45051,32454,45421,18648,31354,45277,19078,44868,44873,18286,45043,17237,30135,13425,43800,18172,13,45516,44858,18237,18427,17981,44853,17703,16885,18279,6609,44863,44745,45518,44856,17114,9341,18446,17835,44870,39676,22509,45262,18981,45177,45561,44685,45286,44866,24441,44711,5410,44884,17335,18688,10402,17904,18301,14402)
Unknown column 'np.person' in 'where clause'