BUG MySQLDatabase performs queries on wrong DB connection when using connection $name != default

Found this issue when trying to do cross-DB operations.