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 (5259,34194,4686,44878,24412,6875,17755,45515,44775,17237,44768,44762,18427,44894,6862,18286,44866,44767,8753,44674,18301,14622,44836,44711,9341,45072,18981,44870,45277,18648,44745,45180,45286,16885,17981,44854,45262,18353,44766,44868,28530,17092,43800,45051,28313,44865,17848,18042,44835,3883,17492,44861,17904,45561,18572,6782,4765,17839,17835,31354,44764,18185,17114,45517,44856,18430,14402,17556,44837,44858)
Unknown column 'np.person' in 'where clause'