Cal. Penal Code § 681
No person can be punished for a public offense, except upon a legal conviction in a Court having jurisdiction thereof.