System error

error:  DBD::mysql::st execute failed: 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 '(series_title.title = '') ) AND
series_title.type != 'invisible'' at line 6 at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm line 379.
context: 
... 
375:  . " SQL: $sql\n"
376:  . "STACK TRACE\n"
377:  . Carp::longmess() . "\n";
378:  }
379:  if ( !$sth->execute(@bind_values) ) {
380:  eval('use Carp;');
381:  die 'DBIx::Abstract (execute): '
382:  . $sth->errstr . "\n"
383:  . " SQL: $sql\n"
... 
code stack:  /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm:379
/opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm:414
/mnt/rest/home/turner/Dropbox/perl/anime/html/data/search:74
/mnt/rest/home/turner/Dropbox/perl/anime/html/by-search.html:8
/mnt/rest/home/turner/Dropbox/perl/anime/html/autohandler:102
raw error






























DBD::mysql::st execute failed: 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 '(series_title.title = '') ) AND
    series_title.type != 'invisible'' at line 6 at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm line 379.


Trace begun at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('DBD::mysql::st execute failed: 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 \'(series_title.title = \'\') ) AND^J    series_title.type != \'invisible\'\' at line 6 at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm line 379.^J') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm line 379
DBIx::Abstract::__literal_query('DBIx::Abstract=HASH(0xa9d61a0)', 'SELECT^J    COUNT( DISTINCT series_title.id )^JFROM series^J    INNER JOIN series_title ON series.id = series_title.series_id^JWHERE^J    ( 0(series_title.title = ?) ) AND^J    series_title.type != \'invisible\'^J    ^J', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/DBIx/Abstract.pm line 414
DBIx::Abstract::query('DBIx::Abstract=HASH(0xa9d61a0)', 'SELECT^J    COUNT( DISTINCT series_title.id )^JFROM series^J    INNER JOIN series_title ON series.id = series_title.series_id^JWHERE^J    ( 0(series_title.title = ?) ) AND^J    series_title.type != \'invisible\'^J    ^J', '') called at /mnt/rest/home/turner/Dropbox/perl/anime/html/data/search line 74
HTML::Mason::Commands::__ANON__('search', '', 'adult', 1, 'per_page', 10, 'start', 1, 'google', 0) called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9dcfc0)', 'search', '', 'adult', 1, 'per_page', 10, 'start', 1, 'google', 0) called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1300
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'search', '', 'adult', 1, 'per_page', 10, 'start', 1, 'google', 0) called at /mnt/rest/home/turner/Dropbox/perl/anime/html/by-search.html line 8
HTML::Mason::Commands::__ANON__('vars', 'HASH(0xaa2fff0)', 'tdir', '/themes/default', 'path_info', '', 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xaa6b240)', 'vars', 'HASH(0xaa2fff0)', 'tdir', '/themes/default', 'path_info', '', 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1302
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'vars', 'HASH(0xaa2fff0)', 'tdir', '/themes/default', 'path_info', '', 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1355
HTML::Mason::Request::scomp('HTML::Mason::Request::CGI=HASH(0xa9fa2f0)', 'HTML::Mason::Component::FileBased=HASH(0xaa6b240)', 'vars', 'HASH(0xaa2fff0)', 'tdir', '/themes/default', 'path_info', '', 'search', '') called at /mnt/rest/home/turner/Dropbox/perl/anime/html/autohandler line 102
HTML::Mason::Commands::__ANON__('search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa945c00)', 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1300
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 481
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 481
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0xa9fa2f0)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/CGIHandler.pm line 179
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/CGIHandler.pm line 179
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0xa9fa2f0)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef, 'search', '') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/CGIHandler.pm line 110
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTML/Mason/CGIHandler.pm line 110
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0xa8ed1a0)', 'HASH(0xaa04420)') called at /usr/local/bin/mason-http line 219
eval {...} at /usr/local/bin/mason-http line 217
HTTP::MasonServer::handle_request('HTTP::MasonServer=HASH(0x980a5b0)', 'CGI=HASH(0xaaeb970)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTTP/Server/Simple/CGI.pm line 154
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTTP/Server/Simple/CGI.pm line 154
HTTP::Server::Simple::CGI::handler('HTTP::MasonServer=HASH(0x980a5b0)') called at /usr/local/bin/mason-http line 188
HTTP::MasonServer::handler('HTTP::MasonServer=HASH(0x980a5b0)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTTP/Server/Simple.pm line 402
HTTP::Server::Simple::__ANON__('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)', 'Net::Server::Proto::TCP=GLOB(0xaa6b340)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server.pm line 74
Net::Server::run_client_connection('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 229
eval {...} at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 229
Net::Server::PreFork::run_child('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 187
Net::Server::PreFork::run_n_children('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)', 1) called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 375
Net::Server::PreFork::coordinate_children('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 331
Net::Server::PreFork::run_parent('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server/PreFork.pm line 113
Net::Server::PreFork::loop('HTTP::MasonServer::NetServer0=HASH(0xa8ed210)') called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/Net/Server.pm line 60
Net::Server::run('HTTP::MasonServer::NetServer0', 'port', 8000) called at /opt/perl5/perls/perl-5.20.1/lib/site_perl/5.20.1/HTTP/Server/Simple.pm line 271
HTTP::Server::Simple::run('HTTP::MasonServer=HASH(0x980a5b0)') called at /usr/local/bin/mason-http line 83
HTTP::MasonServer::run('HTTP::MasonServer=HASH(0x980a5b0)') called at /usr/local/bin/mason-http line 358