Fix bug in ExecDeleteFromQuery