Thread:Project:Support desk/SMF Mediawiki integration - cant log in to mediawiki

I have just upgraded both smf forum to the latest version and mediawiki too. I have a file in /extensions called SMF_Auth.php which is called when logging into mediawiki. This file contains the code

// Check Database for username and password. $fstrMySQLQuery = 'SELECT `memberName`, `passwd` FROM `'. $GLOBALS['wgSMF_UserTB']. '`                                  WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 ) COLLATE latin1_swedish_ci LIMIT 1'; }           else {               // Check Database for username and password. $fstrMySQLQuery = 'SELECT `memberName`, `passwd` FROM `'. $GLOBALS['wgSMF_UserTB']. '`                                  WHERE `memberName` = \''. $username. '\'                                  LIMIT 1';

I am not logged into mediawiki when I use my smf forum username and password. Both databases use latin1_swedish_ci collation so I dont think this should be an issue. What can I do?