HARTFORD, Conn. (AP) — A Connecticut dentist convicted of illegally prescribing oxycodone has been sentenced to six serve years in prison.

Peter Delaney, of West Hartford, was also addicted to painkillers and apologized at his sentencing hearing on Wednesday.

The 48-year-old Delaney pleaded guilty in February to three counts of illegal distribution of narcotics.

Delaney's bogus prescriptions came to light when another man was arrested for twice robbing an East Granby bank. That man said he robbed the bank to pay drug debts and identified Delaney as the source of his drugs.

Delaney said in court that his year in jail since his arrest has allowed him to become sober.

He is not currently licensed to practice in Connecticut.