Apparently it was attempting to drop database db due to a missing interpolated variable.
db
Related tickets:
./manage.py prune_orphan_dbs --rm mysql