Fixed SQL error when deleting user