Fix an SQL syntax error.