*121 Opinion
Defendant made an unsuccessful motion to dismiss the information on the grounds of double prosecution in violation of Penal Code section 654 as construed by
Kellett
v.
Superior Court
(1966)
Under a plea bargain struck after his motion to dismiss was denied, defendant pled guilty to six counts of lewd and lascivious conduct upon a child under the age of 14 (Pen. Code, § 288, subd. (a)) 1 and two counts of penetration of the genital or anal openings of another person by a foreign object (§ 289, subd. (a)). Seven other counts were dismissed. Defendant was sentenced to 60 consecutive years in state prison. This appeal followed.
Factual and Procedural Background
In the afternoon of May 4, 1982, defendant twice became enraged at Tammy, his eight-year-old daughter, once because she was unable to complete a math problem and again when she failed to take out the garbage promptly. In the course of that violent afternoon, defendant grabbed Tammy’s hair and threw her around the kitchen. Then he hurled a chair at her. Finally, he pulled down her pants and started stinging her with a cattle prod, an instrument she described as the “hot shot.” Defendant stung her three to six times on her behind. The prod left small, dot-like marks on Tammy and caused her to become dizzy and cry. These events gave rise to a felony prosecution in May 1982 for infliction of cruel and inhumane corporal punishment on a child. (§ 273d.) Defendant pled guilty to that crime on July 7, 1982, and the court granted him probation with the condition he serve 11 months in county jail and pay a fine and penalty assessment.
On other various occasions from about January 1, 1982, to and including May 4, 1982, defendant inserted the end of a sewing machine brush in Tammy’s vagina and anus, penetrated her vaginal and anal openings with his penis, orally copulated her, and forced her to orally copulate him. Defendant threatened Tammy that if she did not participate in these acts, he *122 would hang her upside down from a punching bag. On two occasions defendant carried out that threat and hung Tammy upside down from the punching bag and stung her with the cattle prod. Defendant also forced Tammy to kneel in a corner clothed in panties on a screen surface he had devised and he then stung her with the cattle prod. These sexual offenses lead to a second prosecution commenced in August 1982. In the course of this second prosecution it was discovered that defendant had committed some of these sex offenses against Tammy on May 4, 1982, the same day he inflicted unlawful corporal punishment on her and for which he had earlier been prosecuted.
Defendant’s motion to dismiss was premised upon the assertion that “the physical and sexual abuse are part of the same course of conduct and the prosecution was aware of the sexual abuse allegations early in the prior proceedings, ...” Consequently, so the argument goes, the failure to join the sexual offenses with that earlier prosecution for corporal punishment resulted in a bar to a subsequent prosecution for the related sexual offenses. In support of his motion, defendant’s former counsel in the earlier proceeding filed a declaration in this case asserting that “[o]n or about May 24, 1982, the same day the preliminary examination was conducted in [the prior] case, Deputy District Attorney Perkinson informed me that there may be allegations of sexual fondling in connection with the case and that there had been an indication of that in a past offense. Perkinson added that he would inform me if sexually oriented charges would be filed.” The record shows that before defendant pled guilty to the corporal punishment charge, a probation officer contacted Deputy District Attorney John Perkinson, who was prosecuting that case, and expressed concern that defendant might be sexually abusing Tammy. The probation officer’s suspicion arose from the fact that while defendant was on probation for a 1977 battery of Tammy there had been a report of a molestation incident. In his counter declaration, the prosecutor declared that the probation officer “informed me in this conversation that the Defendant had been suspected of sexually abusing his daughter some time in the past (my impression was several years in the past), and, as a result, speculated that similar conduct might be present currently. [The probation officer’s] speculation at this time was based solely on this prior investigation as there were no current reports (statements from victim, etc.) to establish a basis for possible recent sexual abuse. . . . [U]p to Defendant’s plea on July 7, 1982, nothing further was developed nor communicated that would have led me to initiate further criminal charges against the Defendant.” In denying the motion, the court stated that, notwithstanding the communicated concerns of the probation officer, there was no evidence the prosecuting attorney was either aware of, or should have been aware of, any sexual crimes at the time of the first plea.
*123 Discussion
I
On appeal defendant renews his contention that the trial court committed prejudicial error in denying his motion to dismiss on grounds of impermissible multiple prosecution in violation of section 654. The People contend defendant’s argument is not cognizable on appeal because the claimed error was waived by his plea of guilty. We disagree.
Section 654 contains two separate provisions.
2
The first precludes multiple punishment where an act or omission is made punishable by different penal provisions. The second part of section 654 provides that “an acquittal or conviction and sentence under either one bars a prosecution for the same act or omission under any other.” This second aspect of section 654 is a safeguard against harassment and is not necessarily related to the punishment to be imposed. Consequently, “double prosecution may be precluded even when double punishment is permissible.”
(Neal
v.
State of California
(1960)
In
Kellett,
the Supreme Court considered the policy factors underlying the statute and concluded that in order to avoid needless harassment of the defendant and the waste of public funds section 654 should be construed to prohibit successive prosecutions where the first prosecution results in acquittal or conviction and sentence, and the prosecution was or should have been aware of more than one offense in which the same act or course of conduct played a significant part. (63 Cal.2d at pp. 826-827.) Consequently, “[f] allure to unite all such offenses will result in a bar to subsequent prosecution of any offense omitted if the initial proceedings culminate in either acquittal or conviction and sentence.”
(Id.,
at p. 827.) As the high court later recounted in
People
v.
Lohbauer
(1981)
Section 1237.5 provides the procedure for the perfection of an appeal after a plea of guilty.
4
Under its terms, as a condition precedent to filing an appeal following a guilty plea, the defendant must file a written statement under oath or penalty of perjury showing “reasonable constitutional, jurisdictional, or other grounds going to the legality of the proceedings.” The trial court must then “certify any arguably meritorious appeal” by issuing a certificate of probable cause for appeal.
(People
v.
Holland
(1978)
First, a guilty plea constitutes an admission of every element of the offense charged and constitutes a conclusive admission of guilt.
(In re Hawley
(1967)
A guilty plea also waives any irregularity in the proceedings which would not preclude a conviction. (See
People
v.
Nooner
(1962)
The United States Supreme Court had occasion to characterize the nature of a guilty plea in a related context in
Blackledge
v.
Perry
(1974)
Although the decision in Blackledge is not controlling on the issues which may be raised in a state appeal of a conviction upon a guilty plea, its expression of the issues which are not waived is an accurate description of the right to appeal in California. Of course the issues which may be raised on appeal are broader than those which can be redressed through federal habeas corpus proceedings since they include not only constitutional, but jurisdictional and other grounds going to the legality of the proceedings. Nevertheless the concept is the same. A person who pleads guilty to a criminal offense cannot thereafter raise issues relating to his guilt or to the procedures which would otherwise be required to establish his guilt. He may only raise *127 issues which, if true, would preclude the state from prosecuting him despite his guilt.
California decisional authority illustrates this rule. Thus the appellate courts have held that a guilty plea waives issues involving the admissibility of defendant’s extrajudicial admissions or confessions
(People
v.
Pettingill
(1978)
Conversely, when the grounds relate to the legality of the proceedings but do not challenge the guilt of the defendant or the prosecutor’s ability to convict him, those grounds may be urged on appeal under a certificate of probable cause. Thus issues which have been held reviewable after a guilty plea include the right to pretrial diversion of a factually guilty but eligible defendant
(People
v.
Padfield, supra,
When defendant’s motion to dismiss based upon section 654 as interpreted in
Kellett
is viewed under these standards it is apparent that this is precisely the type of question which a guilty plea does not waive. By moving to dismiss under
Kellett,
defendant has in no way protested his innocence of the charges; he merely objects to the right of the state to try him for those offenses, a matter going to the legality of the proceedings. It is “the right not be haled into court at all” that defendant asserts, not his innocence. That ground survives his plea of guilty. As we have noted, the purpose of section 654 and the decision in
Kellett
is to prevent harassment,
*129
and to avoid the waste of public funds. (
II
Since defendant obtained a certificate of probable cause on a cognizable issue, we turn to the merits of his contention that the court erred in refusing to dismiss the information under
Kellett.
As we have noted, when “the prosecution is or should be aware of more than one offense in which the same act or course of conduct plays a significant part, all such offenses must be prosecuted in a single proceeding unless joinder is prohibited or severance permitted for good cause.”
(Kellett,
The judgment is affirmed.
Regan, Acting P. J., and Sims, J., concurred.
Appellant’s petition for review by the Supreme Court was denied August 14, 1985.
Notes
Unless otherwise indicated, all statutory references are to the Penal Code.
Section 654 provides: “An act or omission which is made punishable in different ways by different provisions of this code may be punished under either of such provisions, but in no case can it be punished under more than one; an acquittal or conviction and sentence under either one bars a prosecution for the same act or omission under any other.”
In contrast, a claim of double jeopardy or a prior conviction or acquittal must be entered as a specific plea (§ 1016), and is waived if not pled.
(People
v.
Belcher
(1974)
Section 1237.5 reads: “No appeal shall be taken by 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: [¶] (a) The defendant has filed with the trial court a written statement, executed under oath or penalty of perjury showing reasonable constitutional, jurisdictional, or other grounds going to the legality of the proceedings; and [¶] (b) The trial court has executed and filed a certificate of probable cause for such appeal with the county clerk.” This section is “implemented by rule 31(d) of the California Rules of Court which provides section 1237.5’s provisions are inapplicable where the appeal is solely based upon grounds ‘occurring after entry of such [guilty, or nolo contendere] plea which do not challenge the validity of the plea.’”
(People
v.
Arwood
(1985)
As can be seen, the statute also applies when the defendant has entered a plea of no contest (nolo contendere) or when he admits a violation of probation in a probation revocation proceeding. It does not, however, apply to juvenile court proceedings. Consequently, a minor who admits a juvenile court petition alleging a criminal offense need not secure a certificate of probable cause in order to appeal.
(In re Joseph B.
(1983)
Under section 1237.5, “[t]he trial court is empowered to review the statement of the grounds of the appeal to preclude those appeals which raise no issues cognizable after a guilty plea or which raise cognizable issues which are ‘clearly frivolous and vexatious . . . .’ [¶] It is not the trial court’s responsibility to determine if there was an error in the proceedings. . . . Thus, if the statement submitted by the defendant in accordance with section 1237.5 presents any cognizable issue for appeal which is not clearly frivolous and vexatious, *125 the trial court abuses its discretion if it fails to issue a certificate of probable cause.” (People v. Holland, supra, 23 Cal.3d at pp. 83-84; italics in original and citations omitted.)
Nevertheless, where the defendant has been induced to enter his guilty plea upon a promise of a certificate of probable cause to raise an issue which is not cognizable, he may attack the plea on appeal on the ground that the plea was improperly induced because it was beyond the power of the trial court to bargain with him to preserve for appellate purposes an issue that is waived by the plea. (People v.
DeVaughn, supra,
Of course, where an issue is statutorily preserved for appeal after a plea of guilty, such as Penal Code section 1538.5 does with search and seizure questions, then a plea of guilty will not waive appellate review of those questions. But questions which are not preserved by special statutory enactment are waived even though they may arise out of constitutional principles. (See
People
v.
DeVaughn, supra,
Of course, if the plea itself (as opposed to the procedures which preceded it) is claimed
*128
to be defective, that defect can be raised on appeal under a certificate of probable cause. (See, e.g.,
People
v.
DeVaughn, supra,
The trial court also found the risk of harassment was outweighed by the risk defendant would escape punishment for the more serious felonies. It further found defendant should be estopped from asserting the section 654 issue. In light of our disposition of the multiple prosecution issue, it is unnecessary to address these additional grounds.
