An NYPD detective was run over and dragged by an all-terrain vehicle as he and other officers tried to stop its wild driver Sunday in Brooklyn, law-enforcement sources said.

The cop was knocked out of his shoes — and the driver was later found hiding in a car atop a raised lift in a local auto-body shop, the sources said. The officer suffered a broken vertebra, a fractured nose, cuts to his left leg and facial bruises.

The driver had been tearing around Cypress Hills on a quad bike when the detective and other officers from the Brooklyn North Gang Unit tried to pull him over near the corner of Pitkin and Autumn avenues at around 3:30 p.m., the sources said.

The ATV involved in the accident.Photo: Demetrius E. Loadholt

Christian Oliviere, 24, allegedly ran the officer over in front of a bus stop and dragged him several feet before speeding off. He was charged with reckless driving, reckless endangerment and fleeing cops in a motor vehicle.

Abraham Quayson, 47, and Goodwin Gould, 31, were charged with obstruction of justice.