Fixing error message in Mysql driver

This is a copy of https://github.com/joomla/joomla-cms/pull/2464 but this time against master. See the original pull request for more details.