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: Edwin Allen Charged With Sexually Assaulting Woman In Upper Darby SEPTA Train Terminal

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: Philadelphia Police Officer William Watts, Sr. Arrested On Child Pornography Charges

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: 106-Year-Old Berks County Woman Who Credits A Yuengling A Day For Longevity Gets Gift From Brewery

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