DELETE from find_detail_link where id in (select temp.id from (select id from find_detail_link group by link having count(*)>1) as temp)