An offense is considered a second or subsequent offense if:
- (1) for a possession offense pursuant to the provisions of this article, the offender has been convicted within the previous ten years of a violation of a provision of this article or of another state or federal statute relating to narcotic drugs, marijuana, depressants, stimulants, or hallucinogenic drugs; and
- (2) for all other offenses pursuant to the provisions of this article, the offender has at any time been convicted of a violation of a provision of this article or of another state or federal statute relating to narcotic drugs, marijuana, depressants, stimulants, or hallucinogenic drugs.