Hmm, did you fill in your phpbb prefix correctly? laugh

Honestly, I'm stumped. Basically, that error is like 300 lines away from the code you changed.

Code
	$query = "show tables like '{$dbprefix}users%'";
	$sth = mysql_query($query,$dbhimport);
	list($check) = mysql_fetch_array($sth);
	if (!$check) {
		echo "Unable to query from the {$dbprefix}Users table, it doesn't appear your import database settings are correct.";
		exit;
	}

It just checks to see if the users table exists, so if you have your prefix at phpbb_ I can't see why it would fail.