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 (39676,17755,45286,30963,18652,13988,44711,44531,44869,45042,18446,44767,24411,44849,17657,17351,4765,3,14402,18353,44873,6782,44855,32454,6609,44837,45567,45515,18430,45051,43800,17981,4686,44866,17771,18427,17009,37267,18900,44764,44671,45421,13425,45516,18719,16885,44745,44868,44884,30135,44674,44848,31354,44775,44854,18648,44845,9341,17114,44851,44858,18794,17835,17756,17703,45229,17278,17848,5410,44669)
Unknown column 'np.person' in 'where clause'