Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18900,32454,14402,44863,19078,44853,45177,18572,44837,17755,17756,24441,30986,18172,17278,6782,44884,17835,3,44766,13988,17527,44869,45229,45051,5388,44764,44739,18981,17601,28530,45421,44868,44674,44767,36472,44768,18430,44856,18353,44835,37267,10402,5993,17114,13,45043,45042,18996,18185,44854,31354,44765,30135,44867,45517,44878,13425,18894,44873,44685,4686,18794,17904,17703,14622,30963,3883,44849,44861)
Unknown column 'np.person' in 'where clause'