For mysqli driver use IGNORE + ON DUPLICATE KEY statement