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 (44745,44868,44849,17114,3883,45567,18981,17351,18648,45277,44835,17237,22509,17092,18794,17601,18894,18185,44687,45516,18572,44853,8753,31354,44851,37267,44866,6862,10402,30986,45346,45072,44869,5993,17527,18446,18237,32454,44854,18427,44531,17981,45177,18172,16885,44711,44837,18301,44858,17335,44867,44870,44848,45042,18652,44766,44689,17848,44739,44884,45518,45043,17009,45180,44856,18279,28313,24438,13,17657)
Unknown column 'np.person' in 'where clause'