13-3214. Prostitution; classification

A. It is unlawful for a person to knowingly engage in prostitution.

B. This section does not prohibit cities or towns from enacting and enforcing ordinances to suppress and prohibit prostitution that provide a punishment for misdemeanor violations that is at least as stringent as provided in this section.

C. For the purposes of sentencing under this section, a previous violation of any city or town ordinance that prohibits prostitution and that has the same or substantially similar elements as this section shall be deemed to be a previous violation of this section.

D. It is an affirmative defense to a prosecution under this section that the defendant committed the acts constituting prostitution as a direct result of being a victim of sex trafficking.

E. A person who violates this section is guilty of a class 1 misdemeanor, except that:

1. A person who is convicted of a first violation of this section shall be sentenced to serve not less than fifteen consecutive days in jail and is not eligible for probation or suspension of execution of sentence until the entire sentence is served.

2. A person who is convicted of a second violation of this section shall be sentenced to serve not less than thirty consecutive days in jail and is not eligible for probation or suspension of execution of sentence until the entire sentence is served.

3. A person who is convicted of a third violation of this section shall be sentenced to serve not less than sixty consecutive days in jail, is not eligible for probation or suspension of execution of sentence until the entire sentence is served and shall complete an appropriate court ordered education or treatment program.

4. A person who has previously been convicted of three or more violations of this section and who commits a subsequent violation of this section is guilty of a class 5 felony, shall be sentenced to serve not less than one hundred eighty consecutive days in jail and is not eligible for probation or suspension of execution of sentence until the entire sentence is served.  This paragraph does not prohibit a person from being sentenced to serve a period of incarceration in the state department of corrections.