A Bronx man accused of attempted murder got a break in his trial this week as jurors’ focus turned from the alleged gunman — who fired several shots while chasing his victim down a stairwell — to a cop who tried to get out of a ticket for an overdue car inspection.

Officer Salvador Duran, of the 40th precinct, became the first cop to admit during a criminal trial that he was caught on wiretap fixing tickets.

Duran admitted that he contacted a union delegate to get rid of the ticket, and two others for his sister-in-law.

The cop is not facing criminal charges but the issue came up as he testified against accused gunman Lance Williams, 32, who is on trial in the shooting of Derrick Jordan inside a Mott Haven apartment on East 157th Street on April 7, 2009.

But Duran’s alleged ticket fixing may not have much impact on the trial.

Video surveillance from the crime scene shows the two men step off an elevator and enter the apartment of a woman with whom both are acquainted, police sources said.

Moments later, Jordan is seen dashing out of the apartment after having been shot in the thigh and into a stairwell with Williams chasing after him, the sources said.

“The surveillance video in the hallway shows a clear shot of Lance with a gun in his hand pointed right at the guy,” one police source said.

Williams allegedly fired at least four more shots, but none of the bullets hit Jordan.

Police sources said Jordan and witnesses identified Williams in the video.

Cops arrested Williams, but could not find a weapon at the time.

But while out on $50,000 bail, Williams was busted by Officer Duran for illegally possessing a .45 Caliber gun.

Tests revealed that the gun matched ballistics found at the shooting scene, police sources said.