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 (45043,13,30963,13425,37057,34194,44853,4765,17657,18427,28313,18279,44762,30135,17848,17835,17492,44861,44711,44855,5993,17904,22509,45180,44669,44671,18353,6609,39676,24412,45262,44689,36472,44863,45517,44767,44866,6862,44884,31354,45072,44854,17755,13922,45515,4686,6782,18430,45177,44870,16935,17092,17114,44739,44775,18301,18719,45229,18185,18648,44878,44868,44875,19078,28530,45346,17527,44858,18996,30986)
Unknown column 'np.person' in 'where clause'