The denial of a motion made pursuant to Section 995 or 1538.5 may be reviewed prior to trial only if the motion was made by the defendant in the trial court not later than 45 days following defendant's arraignment on the complaint if a misdemeanor, or 60 days following defendant's arraignment on the information or indictment if a felony, unless within these time limits the defendant was unaware of the issue or had no opportunity to raise the issue.
Ca. Pen. Code § 1510