Mayor Bloomberg has reappointed a Queens judge to a 10-year term, overriding Queens DA Richard Brown, who has been battling with the jurist and wanted him off the bench.

Brown has asked an appeals court to prevent Acting Supreme Court Justice Joel Blumenfeld from ruling on the ethics of his controversial interrogation program. He also wrote the mayor seeking the judge’s ouster.

Blumenfeld, a 65-year-old former defense lawyer, was appointed to the Criminal Court in 1987 by then-Mayor Ed Koch.

Brown asserts that Blumenfeld exceeded his authority by ordering an outside legal opinion of the ethics of the Central Booking interview program, in which prisoners are questioned before their arraignments — and before a defense lawyer is assigned.

In the program, Miranda warnings are preceded by a standard preamble in which the DA offers to investigate the prisoner’s claims.

The expert found the program unethical for several reasons.

Brown declined to comment, and City Hall would only confirm that the reappointment was made Tuesday.