(2) The sentence described in subsection (1) of this section does not apply to a person who is less than three years older than the person under 18 years of age to whom the controlled substance was delivered, unless the person has a previous conviction for delivery of cocaine, methamphetamine, heroin or ecstasy to a person under 18 years of age. [2008 c.14 §3]