whichever occurs first. If the facts upon which disqualification of the judge is sought are not known to the party before the party is notified of the assignment of the judge or before any pretrial hearing is held, the affidavit may be filed not later than the commencement of the trial or hearing of the case.
NRS 1.235