Well, you have to enable error logging; check your config.inc.php file lines:
'LOG_SQL_ERRORS' => '1', (would be 1 for enabled, 0 for disabled)
'SQL_LOG_PATH' => '/home/undergroundnews/forum/logs/sql/', (would be the full path from your server root, directory should be chmodded 777)
Then you need to visit the board to have the error print to the log file. Then you need to open the log file and read the error...