SQL Fehler

Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei ')' in Zeile 9

Backtrace: [show/hide]
/www/local/php_include/wxw-2.22/tpf-2.22/libs/Db.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_sql.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_twe_stored_procedures.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_twe_export_htm.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_twe_export_htm.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_twe_export_htm.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_cms_output.php
/www/local/php_include/wxw-2.22/tpf-2.22/lib/lib_cms_output.php
/www/local/php_include/wxw-2.22/tpf-2.22/twe.php
/www/local/php_include/wxw-2.22/php-2.22/cms/cms.php