The NYPD detectives who gunned down Sean Bell in a barrage of 50 bullets faced the judge who’ll preside over their manslaughter and reckless-endangerment trial yesterday.

It was a tense morning in Queens Supreme Court – made tenser by the fact that the lawyers for the parents of the groom killed on his wedding day say the cops were getting “special treatment” at the courthouse.

Detectives Michael Oliver, Gescard Isnora and Marc Cooper were all ushered through side entrances or back doors of the Kew Gardens courthouse.

“The defendants should not receive special treatment,” said lawyer Damien Brown. “They’re no different than any other defendant.”

But David Bookstaver, the spokesman for the courts, said, “In this case, there’s a very real security issue. Court officers bringing any defendant in and out of the courthouse must consider their safety.”

But when asked if there were any threats made against the cops, he said he can’t discuss threats.