This is my fix (temporary perhaps),
1. Open TeraWurlfConfig.php and make adjustment like this
my public static $TABLE_PREFIX = "terawurfl";
2. Open TeraWurlfDatabase_MySQL5.php and make changes
$TABLE_PREFIX="terawurfl";
$query = "SELECT `deviceID` FROM `".'jos_terawurflmerge'."` WHERE `user_agent`=".$this->SQLPrep($userAgent);
That's working for now. I know that's not neat but i didn't have much time to dive deeper into the codes. I hope the fix useful somehow and will lead to better solution