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 (18719,45515,44869,6782,44855,45072,13988,28313,18650,19078,45177,44878,18981,13425,17835,45561,44845,45346,44671,45518,44884,43800,45262,44868,8753,32454,6862,17839,44711,17335,3883,4765,18572,17981,44861,44873,44765,17092,17756,18172,30963,45043,24412,44739,44766,34194,44866,4686,14402,3,28530,14622,45421,44858,31354,44854,45180,44767,44764,44835,24411,44640,10402,5993,36472,18185,44669,45277,9341,18237)
Unknown column 'np.person' in 'where clause'