I'll assume you're using UBB.threads 6.1.1.

Edit mysql.inc.php, and near the end of the file, temporarily change:
<pre>if ( ($user['U_Status'] != "Administrator")
&& ( (!stristr($What,"createtable")) && ...
$error = "Database error only visible to forum administrators";
}
else {
$this->errordesc = mysql_error();
}</pre>
To:
<pre>$this->errordesc = mysql_error();</pre>

That will allow you to see the actual MySQL error. By the way, the subsequent two warnings are not of interest. They're just secondary errors caused by the initial error.