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 (44669,44848,18648,32454,17657,5259,17556,45262,45180,13425,17703,18794,17904,17237,18996,17755,18719,18185,17009,45421,45346,18301,31354,44863,17492,17839,44745,16935,44870,8753,18353,17114,17335,18894,18900,18652,44836,44689,19078,44854,45229,18688,44861,44869,45286,18430,44762,6875,44739,30986,45277,18237,5993,44866,18427,44767,17278,44867,44873,45051,6609,37267,44531,14402,17981,44775,16885,17092,5410,6782)
Unknown column 'np.person' in 'where clause'