Fix SQL statement.