Opinion
Following defendant’s plea of no contest in exchange for a maximum sentence of 25 years to life, the trial court imposed the agreed maximum sentence, refusing to impose a lesser sentence by striking one or more of his prior conviction allegations. Defendant appealed, contending that the maximum sentence constitutes cruel and unusual punishment. We dismissed his appeal on account of his failure to obtain a certificate of probable cause pursuant to Penal Code section 1237.5, 1 but granted rehearing following defendant’s request to brief the issue. We now reaffirm our earlier ruling and dismiss the appeal.
Under section 1237.5 and rule 31(d) of the California Rules of Court 2 , no appeal may be taken by a defendant from a judgment of conviction upon a plea of guilty or nolo contendere except where a certifiсate of probable cause is filed—unless the appeal deals with search and seizure issues, or is based on grounds “occurring after entry of the plea which do not challenge its validity.” (Rule 31(d).)
In
People v. Panizzon
(1996)
In this case, defendant’s plea agreement did not provide for a particular sentence but for a maximum sentence, thereby allowing him to seek a lesser one. Nonetheless, we conclude that defendant’s challenge to the constitutionality of the maximum sentеnce that was part of his plea bargain is no less an attack on the validity of his plea. Accordingly, under the reasoning of Panizzon, supra, 13 Cal.4th at pages 78-79, his appeal must be dismissed by virtue of his failure to obtain a certificate of probable cause.
I. Factual and Procedural Background
Defendant pled no contest to transportation of cocaine (Health & Saf. Code, § 11352, subd. (a)), possession of cocaine (Health & Saf. Code, *830 § 11350, subd. (a)), and possession of a firearm by a convicted felon (§ 12021, subd. (a)(1)).
Defendant also admitted that he had two robbery convictions (§ 211) and one conviction for residential burglary (§ 459) within the meаning of section 1170.12, the “Three Strikes” law, and had served two prison terms within the meaning of section 667.5, subdivision (b).
In exchange for his pleas and admissions, defendant was promised a maximum sentence of 25 years to life in state prison and the opportunity to ask the trial court to strike one or more of his prior convictions. (See
People
v.
Superior Court
(Romero) (1996)
At sentencing, the trial court declined to strike any of the prior conviction allegations, but imposed the agreed maximum term of 25 years to life. Defеndant filed a notice of appeal, but did not obtain a certificate of probable cause pursuant to section 1237.5.
Defendant’s sole contention on appeal is that the sentence constitutes cruel and unusual punishment.
II. Discussion
Based on the reasoning of the California Supreme Court’s decision in Panizzon, supra, 13 Cal.4th at pages 74-79, we conclude that this appeal must be dismissed because the record contains no certificate of probable cause required pursuant to section 1237.5
Section 1237.5 provides as follows: “No appeal shall be taken by the defendant from a judgment of conviction upon a plea of guilty or nolo contendere, or a revocation of probation following an admission of violation, except where both of the following are met: [¶] (a) The defendant has filed *831 with the trial court a written statement, exеcuted under oath or penalty of perjury showing reasonable constitutional, jurisdictional, or other grounds going to the legality of the proceedings, [¶] (b) The trial court has executed and filed a certificate of probable cause for such appeal with the county clerk.”
However, “it is settled that two types of issues may be raised in a guilty or nolo contendere plea appeal without issuance of a certificate: (1) search and seizure issues for which an appeal is provided under section 1538.5, subdivision (m); and (2) issues regarding proceedings held subsequеnt to the plea for the purpose of determining the degree of the crime and the penalty to be imposed.”
(Panizzon, supra,
Rule 31(d) implements these exceptions by providing, inter alia, as follows: “If the appeal from a judgment of conviction entered upon a plea of guilty or nolо contendere is based solely upon grounds (1) occurring after entry of the plea which do not challenge its validity or (2) involving a search or seizure ... the provisions of section 1237.5 . . . requiring a statement by the defendant and a certificate of probable cause by the trial court are inapplicable, but the appeal shall not be operative unless the notice of appeal states that it is based upon such grounds.”
In
Panizzon, supra,
The high court explained the rationale underlying its ruling in
Panizzon
as follows: “In determining whether section 1237.5 applies to a challenge of a sentence imposed after a plea of guilty or no contest, courts must look to the substance of the appeal: ‘the crucial issue is what the defеndant is challenging, not the time or manner in which the challenge is made.’ [Citation.] Hence, the critical inquiry is whether a challenge to the sentence is
in substance
a challenge to the validity of the plea, thus rendering the appeal subject to the requirements of section 1237.5.” (
Likewise, defendant in this case is attacking the validity of his plea. The prosecution agreed to a maximum sentence of 25 years to life in return for defendant’s plea. Yet, defendant now attacks that maximum sentence on the ground that it is cruel and unusual punishment. By arguing that the maximum sentence is unconstitutional, he is аrguing that part of his plea bargain is illegal and is thus attacking the validity of the plea. Having failed to obtain a certificate of probable cause, defendant cannot appeal. (See also
People v. Sabados
(1984)
Defendant argues that Panizzon does not apply because he “did not agree to a particular negotiated sentence” as- did the Panizzon defendant.
Admittedly, the defendant in
Panizzon
challenged the constitutionality of the sentence to which he agreed, whereas defendant here challenges the constitutionality of the
maximum
sentence to which he agreed. Nоnetheless, by attacking the maximum term, defendant seeks to void a term of the agreement to which both parties agreed to abide (see
People v. Walker
(1991)
We are mindful that “[t]he purpose for requiring a certificate of probable cause is tо discourage and weed out frivolous or vexatious appeals challenging convictions following guilty and nolo contendere pleas.”
(Panizzon,
*833
supra,
Defendant also argues that dismissal of his appeal is contrary to the California Supreme Court’s decision in
People
v.
Lloyd
(1998)
In this case, unlike Lloyd and like Panizzon, defendant’s challenge to his sentence, even if based on postplea events, was an attack on a term of the plea agreement. (And in Panizzon, even though the defendant claimed that the purported disproportionality of his sentence was based on postplea events, the Supreme Court noted that his sentence was part of his plea agreement.)
Finally, defendant contends that “by reserving the right to challenge the imposition of a 25 years to life term, [defendant] obviously reserved the *834 right to challenge such a sentence on any appеalable grounds, including cruel and unusual punishment grounds.” However, defendant did not reserve his right to challenge the constitutionality of the maximum sentence. He merely reserved the opportunity to ask the trial court to exercise its discretion to strike one or more of the prior conviсtion allegations. Even if he could have challenged without a certificate of probable cause the trial court’s exercise of its discretion whether to strike his prior convictions on the ground that it was a matter that “occurr[ed] after entry of the plea which do[es] not сhallenge its validity” (rule 31(d))—an issue we do not address—a challenge to the maximum sentence to which defendant agreed as part of his plea bargain does challenge the validity of the plea because it challenges one of its material terms.
Accordingly, we conclude thаt defendant may not challenge the constitutionality of the maximum sentence that was agreed as part of his plea bargain in the absence of a certificate of probable cause.
Disposition
The appeal is dismissed.
Blease, Acting P. J., and Raye, J., concurred.
Appellant’s petition for review by the Supreme Court was denied May 10, 2000.
Notes
Unless otherwise designated, all further statutory references are to the Penal Code.
Unless otherwise designated, all further references to rules are to the California Rules of Court.
Such a prison term assumes consecutive sentences for two of the counts. Defendant contends that “it is not at аll apparent that consecutive terms would have been mandatory in this case because arguably the offenses were all committed on the same occasion.” However, assuming without deciding that his contention is correct, that does not mean that the court could not have imposed consecutive sentences in its discretion. (See
People v. Deloza
(1998)
