I've recently updated to the newest beta release, and I think this problem started then. In my configuration, I had databases listed in the session settings like "db1; db2; db3" but when I tried to switch to the second or third databases, it failed because it tried to run
use ` db2`; (with the space). Of course, changing it to "db1;db2;db3" fixed the problem.
I think either it should trim spaces from the beginning and end of the name, or be really clear in the UI that spaces aren't ignored.