Notwithstanding Sections 120975, 120980, and 120990 of the Health and Safety Code, upon the first conviction of a person for a violation of subdivision (b) of Section 647, the court shall refer the defendant, where appropriate, to a program under Article 3.2 (commencing with Section 11320) of Chapter 2 of Part 3 of Division 9 of the Welfare and Institutions Code or to a drug diversion program, or to both.
Ca. Pen. Code § 1202.6