After the murder of a recreation worker at a city center, Mayor Jim Kenney issued an executive order banning guns at playgrounds and recreation centers. A local judge overturned Mayor Kennedy’s order, because it violates state law.

This is madness. People will die. Are guns in schools okay too?

A Philadelphia Common Pleas Court judge on Monday blocked the city from enforcing an executive order Mayor Jim Kenney signed last week banning guns at recreation centers and playgrounds following the fatal shooting of a Parks and Recreation employee last month.

The Gun Owners of America, on behalf of several state residents, filed a lawsuit last Tuesday, the day Kenney signed his order. After hearing arguments Friday, Judge Joshua H. Roberts issued his ruling siding with the plaintiffs and ordering Philadelphia to be “permanently enjoined” from enforcing Kenney’s ban.

The lawsuit cited Pennsylvania state law that prohibits any city or county from passing gun-control measures. The preemption law, which the city has repeatedly sought to overturn, bans local government from passing gun-control measures that are stricter than state gun laws.

Andrew B. Austin, the attorney representing the plaintiffs, said in an emailed statement: “For my part, I am gratified that the Court of Common Pleas was able to so quickly resolve this suit, but that was in large part because the law is so explicit: The City is not allowed to regulate possession of firearms in any manner.”