System error

error:  SQL Error!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at /home/triviawars/category/master line 20.
context: 
... 
315:  }
316: 
317:  # These are the originals
318:  sub realwarn { CORE::warn(@_); }
319:  sub realdie { CORE::die(@_); }
320: 
321:  sub id {
322:  my $level = shift;
323:  my($pack,$file,$line,$sub) = caller($level);
... 
code stack:  /usr/lib/perl5/5.8.1/CGI/Carp.pm:319
/usr/lib/perl5/5.8.1/CGI/Carp.pm:396
/home/triviawars/category/master:20
raw error






























SQL Error!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at /home/triviawars/category/master line 20.


Trace begun at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception('SQL Error!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 1 at /home/triviawars/category/master line 20.^J') called at /usr/lib/perl5/5.8.1/CGI/Carp.pm line 319
CGI::Carp::realdie('SQL Error!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 1 at /home/triviawars/category/master line 20.^J') called at /usr/lib/perl5/5.8.1/CGI/Carp.pm line 396
CGI::Carp::die('SQL Error!You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\' at line 1') called at /home/triviawars/category/master line 20
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9fd6abc)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 1069
eval {...}('HTML::Mason::Component::FileBased=HASH(0x9fd6abc)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 338
eval {...}(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 338
eval {...}(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9ea6ff4)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 134
eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x9ea6ff4)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9ea6ff4)') called at /usr/lib/perl5/site_perl/5.8.1/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xa0ffce0)', 'Apache=SCALAR(0xa0a0528)') called at /etc/httpd/conf/handler.pl line 93
HTML::Mason::handler('Apache=SCALAR(0xa0a0528)') called at /dev/null line 0
eval {...}('Apache=SCALAR(0xa0a0528)') called at /dev/null line 0