Remove duplicated values from DELETE queries