In 1957 Carlos Haro (hereinafter referred to as defendant) pleaded guilty to possession of heroin (Health & Saf. Code, § 11500) and admitted a September 20, 1955, misdemeanor conviction of use of, or being under the influence of, marijuana (Health & Saf. Code, §11721). The court sentenced him to imprisonment in the state prison for the term prescribed by law. Because of the prior misdemeanor conviction, defendant’s sentence, pursuant to former Health and Safety Code section 11712, is automatically increased from a maximum of 10 years to 20 years. In this habeas corpus proceeding defendant challenges tlie validity of his prior misdemeanor conviction and the resultant increased penalty.
*1023 The 1955 complaint was filed against defendant in Los ángeles County charging defendant with violation -of Health md Safety Code section 11721, á misdemeanor, and alleging that ‘ ‘.the accused did willfully and unlawfully use and [was] iddicted to the unlawful use of narcotics.” We do not have the benefit of a transcript of the proceedings at arraignment Dr sentencing at this time because those records have been destroyed. The municipal court docket sheet states: “Sep. 1, 1955 Cause called. Judge John G. Barnes presiding. Both parties ready. People represented by J. C. Denny (D.C.A.). Defendant represented by Lothair Schoenheit [a deputy public defender]. Defendant in court, duly arraigned,.informed of- the charges against him and of his legal rights. Defendant gives true name as charged and enters his plea of not guilty to the offense charged. Defendant in open court personally demands jury trial. Trial set for September 20, 1955, at 9 A.M. in Division 7. Bail fixed in the sum of $2,500.00. Defendant committed. ”
When defendant appeared on the date set for jury trial, the docket sheet indicates that he was “represented in pro per.” At that time defendant withdrew his plea of not guilty and entered his plea of guilty. A letter incorporated in the file from Judge Parks Stillwell, presiding' in that department, states: “As I recall, it was not my practice to advise defendants at this stage of their right to be represented by counsel, and this would be true whether I was aware of prior representation or not. The defendants had been advised of their right's at arraignment, and we accepted anyone’s plea of guilty, whether represented or not, without any further advice re his right to counsel. There was, at that time, no thought that such representation was required in misdemeanor cases. ’ ’ On that date the court sentenced defendant on his plea of guilty to five years probation with the first 180 days to be spent in county jail.
Subsequently, in 1957, as we have noted, defendant pleaded guilty to the charge of possession of heroin. He admitted the 1955 prior conviction; on June 3, 1957, the court sentenced defendant to the state prison for the term prescribed by law. On July 1, 1957, he. commenced his term of two to twenty years. Without the prior conviction defendant could not have been subjected to imprisonment for more than 10 years and his term would have expired July 1,1967.
On May 9, 1968, defendant petitioned the Superior Court for the County of Sacramento, the county of confinement, for *1024 habeas corpus; on July 11, 1968, the court issued such a writ returnable on July 26, 1968. On that date the court held its hearing; defendant testified that at the time of the misdemeanor prosecution in 1955 he did not have the benefit of representation by counsel, that the court did not appoint counsel to represent him, and that he did not tell the court that he waived representation by counsel. Upon defendant’s plea of guilty he received a six months jail sentence. Defendant further testified that he did not learn of the effect of the prior misdemeanor conviction until he arrived at the state prison; he then discovered that the prior conviction added 10 years to his sentence, i.e., that the maximum term increased from 10 years to 20 years.
Upon questioning by his counsel, defendant, a Mexiean-American, testified that he had received only a fifth-grade education. The judge then questioned him as follows:
‘ ‘ The Court : Now, you have told the Court that you were arrested for a violation of 11721, you went to court and entered a plea of nor [sic] guilty. You knew enough to do that, didn’t you?
“WITNESS: Yes, sir, right.
“The Court: I suppose you put .up bail, didn’t you?
“Witness: I did that because they were giving years, not—
“The Court: What’s that?
“Witness.- They were giving years, instead of six months. They were giving years, so—
“The Court: So you did put up bail, didn’t you?
“Witness: Yes.
‘ ‘ The Court : Then you entered a plea of not guilty ?
“Witness: Yes.
“The Court: Then you were at large for some time, weren’t you?
“Witness: At large?
“The Court: Well, you came back two weeks later and entered a plea of guilty, didn’t you?
“Witness: Yes.
‘ ‘ The Court : And you knew precisely what you were doing all of the time.
“Witness: No, I didn’t know what I was doing. I wanted county jail time and go through with it.
“The Court: The motion for Writ of Habeas Corpus is denied.”
In our decision in
In re Caffey
(1968)
The Attorney General questions the desirability of a ruling compelling the court in which a prisoner files a writ that challenges the validity of his confinement to transfer the action to another county. He cites the traditional jurisdiction of the court in the county of confinement to handle habeas corpus and argues for the exercise of discretionary power of that court as to the transfer of the case rather than a compulsory requirement that it do so.
We see no reason to change the Caffey rule. 1 In cases involving the validity of prior convictions which would affect the sentence originally ordered, we believe that oncé the court of the county of confinement makes a preliminary determination that the prisoner has alleged facts which, if true, would entitle .him to resentencing, that court must transfer the case *1026 to the 'county of sentencing for an evidentiary hearing t determine the truth of the alleged facts. If defendant demon strates the invalidity of a prior conviction, the same cour must then reconsider and redetermine the sentence. The sen fencing court, rather than the court of the county of confine ment, normally is more familiar with the facts of the case including the basis of sentencing and the prior conviction that may affect that sentence.
In the present ease, the Superior Court for Sacrament) County, instead of transferring the action to the County o: Los Angeles upon defendant’s allegations of these facts, con ducted its own hearing on the merits of defendant’s petition Although the Sacramento court theoretically erred in failing to transfer the case to Los Angeles for an evidentiary hearing the parties have stipulated that we may review the record t< determine whether the Sacramento court properly concluded that defendant’s prior conviction was valid. Moreover, if de fendant’s showing is correct, he is now eligible for release nothing remains for the sentencing court upon which to rule
As we shall hereinafter explain in more detail, th< evidence submitted to the Sacramento Superior Court indicates that defendant was not represented by counsel at th< time of his change of plea and sentencing in 1955, that he die not intelligently and understandingly waive his right to counsel, and that, therefore, the prior conviction was invalid Under such circumstances, defendant, having at this date served the maximum term for conviction of possession oi heroin for a defendant without any prior valid narcotics conviction, should be discharged.
The cases hold that defendant is entitled to representation by counsel at the time of arraignment, plea, and sentencing, and that any waiver of counsel at such times must be an intelligent and understanding one. Thus in
In re Johnson
(1965)
*1027
In
Johnson
we said: “To begin with, ‘it is settled tbat sdiere the assistance of counsel is a constitutional requisite, he right to be furnished counsel does not depend on a re-tuest.’
(Carnley
v.
Cochran
(1962)
. . A defendant who pleads guilty is entitled to the benefit >f counsel, and a request for counsel is not necessary. It is ¡nough that a defendant charged with an offense of this ehar-icter [i.e., burglary] is incapable adequately of making his lefense, that he is unable to get counsel, and
that he does not 'ntelligently and understandingly waive counsel' (Rice
v.
Olson
(1945)
We further stated, “ ‘Presuming waiver from a silent rec-)rd is impermissible. The record must show, or there must be m allegation and evidence which , show, that an accused was )ffered counsel but intelligently and understandingly rejected the offer. Anything less is not waiver.’”
(In re Johnson, supra,
In
Johnson
the only evidence of waiver consisted of (1) lefendant’s plea of guilty, (2) the docket entry reflecting the proceedings that “ ‘Defendant [was] in court, duly arraigned,
informed
of the charges against him and
of his legal rights’
” (
*1028
Likewise, in
In re Woods, supra,
The fundamental issue of this case must therefore turn on whether defendant intelligently and understandingly waived his right to counsel. Respondent bifurcates this issue: (1) did defendant suffer a denial of his right to counsel at arraignment; and (2) did defendant suffer a denial of his right to counsel when he was permitted to plead guilty and receive the sentence of the court without being represented by counsel. In both instances respondent argues that defendant’s rights were protected.
The court records reflect that at the arraignment the public defender’s office represented defendant. At that time he entered his plea of not guilty, and the court set the case for jury trial. Defendant denies that counsel represented him or that the court advised him of his right to counsel. The docket entry, however, indicates the public defender did represent defendant. Moreover, the affidavit of a former deputy city attorney states that the presiding judge, Judge Stillwell, followed the practice of advising all defendants of their right to an attorney and to the appointment of a public defender to represent an indigent. If defendant requested counsel, the court directed the public defender to confer with the defendant, advise him, and answer legal questions. In view of the affidavit and the docket entry, we conclude that defendant was represented at the time of his arraignment. Defendant entered a plea of not guilty at that time.
Respondent admits that on the date defendant changed his plea to guilty and received his sentence the deputy public defender, although still attorney of record, did not appear to
*1029
epresent him, that defendant was not substituted as attorney a propria pefsona in place of the deputy public defender, and bat the court did not advise defendant of his right to coun-el. We stated in
In re Martinez
(1959)
In Martinez we found additional error in the failure of the rial court to follow Penal Code section 1018, which states in i.art that no plea of guilty to a noncapital felony shall “be ccepted from any defendant who does not appear with coun-el unless the court shall first fully inform him of his right to ounsel and unless the court shall find that the defendant nderstands his right to counsel and freely waives it and then, nly if the defendant has expressly stated in open court, to he court, that he does not wish to be represented by eoun-el.”
We expressed in
In re Johnson, supra,
In Martinez, however, we held that despite a trial court’s erroneous noncompliance with Code of Civil Procedure sec tions 284 and 285 and Penal Code section 1018, habeas corpus would not issue if the defendant freely and intelligent]} waived his right to counsel. In Martinez, when defendanl appeared without counsel and changed his plea to guilty the court and the prosecuting attorney carefully- interrogatec defendant as to whether he wished to proceed without counsel and defendant affirmatively declared his desire to proceed/ The record thus showed an express waiver of the right tc counsel. Mr. Martinez contended that at the time of the waiver he had been under the influence of narcotics, and further that the waiver had been eoerced by threats from the district attorney. Accordingly, this court ordered a hearing to determine whether the waiver was freely and intelligently made. Upon receiving findings from the referee upholding the waiver, we denied habeas corpus.
In the present case no waiver appears of record, 5 and consequently we see no need for a factual hearing; absent any *1031 waiver there cannot be a free and intelligent waiver. We con-dude that defendant’s 1955 misdemeanor conviction was nvalid. In sentencing defendant in 1957 to a term of from ;wo to twenty years the. court improperly considered the 1955 ■onviction. The correct term, upon exclusion of the prior conviction, is two to ten years. Since defendant has already served more than the ten-year maximum sentence, he is enti-led to. immediate discharge.
The writ is granted and defendant is discharged from cus-:ody.
The prosecuting attorney, Mr. Holzauer, after pointing out that counsel had previously represented Mr. Martinez, stated that if Mr. Martinez nevertheless desired to proceed in the absence of counsel the prosecuting attorney could "see no objection to that.” The record then reads: "The Court: Are you willing to proceed now? The Defendant: That’s right. Mr. Holzauer: It is your desire to proceed now? The Defendant: That’s right.” (
Notes
The Attorney General, in urging this court to change the
Caffey
rule, relies upon
Zeigler
v.
Superior Court
(1933)
In recent years the courts have increasingly turned to habeas corpus as a means of enforcing post-conviction rights of incarcerated defendants. This expansion of habeas corpus relief has resulted from the continued emphasis placed upon individual rights by the United States Supreme Court. Indeed that court requires us to provide such avenues of relief to state prisoners (e.g.,
Anders
v.
California
(1967)
New Penal Code section 1508 (Stats. 1969, ch. 38, to become effective after adjournment of the 1969 session of the Legislature), cited by the Attorney General, adds nothing that bears upon the procedural problem. Section 1508 will simply restate the familiar rule that this court can order the writ of habeas corpus returnable before itself or a Court of Appeal or a superior court; a Court of Appeal can order the writ returnable before itself or a superior court in its district'; and a superior court can order the writ returnable before itself.
“The attorney in an action or special-proceeding may be changed at ny time before or after judgment or final determination, as follows: . Upon the consent of both client and attorney, filed with the clerk, or ntered upon the minutes; 2. Upon the order of the court, upon the appli-ation of either client or attorney, after notice from one to the other
“When an attorney is changed, as provided in the last section, written otice of the change and of the substitution of a new attorney, or of the ppearance of the party in person, must be given to the adverse party, fntil then he must recognize the former attorney.”
Neither court nor prosecuting counsel called to the attention of de: fendant that he had previously been represented by counsel; neither asked defendant if he nevertheless wished to proceed; defendant did not state a desire to proceed in the absence of counsel.
