Fix delete SQL statement