Ariz. Rev. Stat. § 28-8287
A. If a person is convicted of a second violation of section 28-8282 or is convicted of a violation of section 28-8282 and has previously been convicted of an act in another state that if committed in this state would be a violation of section 28-8282 within a period of sixty months: