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 (18652,18353,44894,24438,45346,3,44878,17278,18446,44685,24412,18981,17009,31354,44869,17756,17755,6782,44762,13988,44764,19057,14402,8753,37057,6609,44768,18794,18237,44766,44870,45043,17981,44861,45517,44689,30135,10402,44856,44765,45561,18648,44867,14622,45229,30986,17237,17904,18650,30963,18185,45051,17657,17492,44687,24441,44767,44858,17351,45286,45072,45042,18572,18996,44851,5410,17092,45177,18688,18894)
Unknown column 'np.person' in 'where clause'