A bank robber who led Amherst police a year ago on a seven-mile chase that ended in a three-car crash on Buffalo’s East Side was sentenced Friday to 15 years in prison.

Mark Daniels, 48, of Cheektowaga was given the maximum sentence by Erie County Judge Michael L. D’Amico, according to the Erie County District Attorney’s Office.

In a bench trial last month, D’Amico convicted Daniels of second-degree robbery, grand larceny and reckless endangerment.

Daniels jumped over a counter and took money from the cashier’s drawer at Evans National Bank at 3388 Sheridan Drive near Bailey Avenue in Amherst at 5:36 p.m., on Dec. 16, 2011, prosecutor Brian P. McNamara said during the trial.

Daniels took about $4,340 and then ran to his rental car.

But the stacks of money stolen from the bank contained a GPS tracking device that allowed police to spot and pursue him, McNamara said.

Daniels drove into Buffalo with Amherst and University at Buffalo police cars in pursuit. Daniels rammed two other cars when he ran a red light at Jefferson Avenue and Best Street, District Attorney Frank A. Sedita III said.

Daniels was nabbed as he got out of his rental car, police said.

The drivers of the other cars suffered multiple injuries, Sedita said.