Fixed SQL code in doDelete.