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 (44640,44669,17114,44764,18446,3,44858,44884,17904,17755,18430,45043,44745,44861,10402,8753,44767,17848,44674,18353,45042,6862,39676,45516,44849,44837,44845,45346,44875,17009,4686,44894,44671,18650,44848,36472,18981,18996,13,13425,3883,44869,45229,17835,44854,17351,18427,44873,18900,5259,28530,24441,44867,18279,44853,45515,18794,45051,44863,14402,6782,34194,17657,17556,6875,43800,18286,44765,18648,44739)
Unknown column 'np.person' in 'where clause'