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 (17335,44765,17756,44689,44854,45421,18286,18301,5388,18042,17835,45177,31354,30135,17556,44767,16885,44873,8753,43800,18981,44856,45180,17848,5410,17981,28530,6609,45346,44711,18185,44849,18648,45517,17237,44764,9341,18237,17703,44640,44867,32454,45516,18427,17092,30986,44739,44766,17755,44845,44768,16935,45042,45518,17278,44837,17657,13988,44848,10402,44762,18446,14622,45051,45515,44851,18688,37267,44836,45262)
Unknown column 'np.person' in 'where clause'