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 (44869,44669,17703,16885,45072,44870,30986,17114,43800,17351,45286,17771,36472,44854,4686,18688,45229,13922,18301,17556,44775,17848,44765,44875,31354,13425,18900,45177,44884,44768,44867,45277,18650,17904,17492,6609,9341,18719,4765,18286,18446,18427,18042,5259,44739,18996,18648,44858,18430,45042,45421,18353,17756,17755,44861,44855,44878,45567,45518,45180,6875,44766,16935,44851,44849,37057,5993,18981,44856,44835)
Unknown column 'np.person' in 'where clause'