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 (44869,44837,45517,44745,34194,45518,45177,17335,45515,18427,6609,44861,17237,6782,9341,6875,45042,17904,5388,45286,44835,45421,18301,17601,18185,44884,4686,45567,18794,18981,44865,45072,6862,4765,10402,18353,22509,17756,44867,44866,31354,17981,44685,17527,17278,44765,44853,36472,19057,44689,44764,17556,30135,44669,18719,17657,17835,44768,17092,44845,30986,44711,18042,18430,14402,43800,18900,45051,3,17351)
Unknown column 'np.person' in 'where clause'