Fix delete SQL