By CBS3 Staff

PHILADELPHIA (CBS) — A judge ruled Philadelphia prosecutors can keep a so-called “do not call list” about police accused of wrongdoing. And now the Fraternal Order of Police is planning an appeal.

The DA’s office keeps a database of officers who have histories of arrests, disciplinary actions or providing false testimony.

READ MORE: ACLU Announces Philadelphia Police Pilot Program As Alternate To Stop And Frisk

Prosecutors working on a case involving any of those officers then alert defendants, and sometimes, the officer is not called to testify at trial.

‘At The Right Place At The Right Time’: New Jersey State Trooper On Vacation In Sea Isle City Saves Swimmer From Drowning

READ MORE: Police Arrest Kareen Welton For Several Hit-And-Runs In Philadelphia, Including Crash That Killed Woman In Center City

Last year, The Inquirer reported 66 officers were on the list. The police union sued to end the practice and on Friday, blasted the judge who dismissed the lawsuit.

FOP President John McNesby said this is another example of DA Larry Krasner pushing his “anti-law enforcement agenda.”

MORE NEWS: President Joe Biden Touts Made In America Plan During Trip To Mack Truck Facility In Lehigh Valley

Krasner dismissed that, saying opposition to the disclosures shows that the FOP prioritizes protecting officers who do wrong.