E. A first conviction pursuant to this section shall be punished, notwithstanding the provisions of Section
31-18-13 NMSA 1978, by imprisonment for not more than ninety days or by a fine of not more than five hundred dollars ($500), or both; provided that if the sentence is suspended in whole or in part or deferred, the period of probation may extend beyond ninety days but shall not exceed one year. Upon a first conviction pursuant to this section, an offender shall be sentenced to not less than twenty-four hours of community service. In addition, the offender may be required to pay a fine of three hundred dollars ($300). The offender shall be ordered by the court to participate in and complete a screening program described in Subsection L of this section and to attend a driver rehabilitation program for alcohol or drugs, also known as a "DWI school", approved by the bureau and also may be required to participate in other rehabilitative services as the court shall determine to be necessary. In addition to those penalties, when an offender commits aggravated driving under the influence of intoxicating liquor or drugs, the offender shall be sentenced to not less than forty-eight consecutive hours in jail. If an offender fails to complete, within a time specified by the court, any community service, screening program, treatment program or DWI school ordered by the court or fails to comply with any other condition of probation, the offender shall be sentenced to not less than an additional forty-eight consecutive hours in jail.
Any jail sentence imposed pursuant to this subsection for failure to complete, within a time specified by the court, any community service, screening program, treatment program or DWI school ordered by the court or for aggravated driving under the influence of intoxicating liquor or drugs shall not be suspended, deferred or taken under advisement. On a first conviction pursuant to this section, any time spent in jail for the offense prior to the conviction for that offense shall be credited to any term of imprisonment fixed by the court. A deferred sentence pursuant to this subsection shall be considered a first conviction for the purpose of determining subsequent convictions.