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 (45177,6609,3883,44873,17278,39676,17981,4686,17703,45043,44845,44853,44775,9341,18650,44836,44875,17092,45567,44711,18042,44689,44868,19078,17114,37267,17335,44764,24411,17527,18185,18237,45229,44856,18996,6782,16885,24438,45072,13425,32454,44767,44863,44849,44837,45042,5259,18353,18652,44835,18900,44865,13,18446,44870,6862,44671,44861,14402,18430,18981,18427,18286,43800,18894,17009,28530,17755,18279,17492)
Unknown column 'np.person' in 'where clause'