Under prior California law, anyone convicted of a first offense for prostitution or soliciting prostitution was required to take an AIDS education course.