Fixes #5671 fixed query for clearing admin settings on plugin