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 (44875,17657,30135,6782,44674,18648,44767,18652,44849,18996,45346,17756,17009,45042,17237,16885,4765,18430,4686,3,44851,44689,45516,44768,18353,44671,17092,36472,18894,17114,44845,16935,19078,9341,6609,13425,44855,24412,44884,17492,45177,45043,44854,18279,18650,17755,17771,18446,45518,19057,18981,18042,44531,44865,45262,44878,3883,18301,17835,43800,10402,44867,17981,44873,6862,30986,45567,44765,44856,39676)
Unknown column 'np.person' in 'where clause'