System error

error:  Can't call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm line 251.
context: 
... 
247:  #open (F, ">>/tmp/foo");
248:  #print F $sql;
249:  #close F;
250: 
251:  my $sth = $dbh->prepare($sql);
252: 
253:  if ($ids_only) {
254:  my $ids = $dbh->selectcol_arrayref($sth, undef, @bind);
255:  return wantarray ? @{$ids} : $ids;
... 
code stack:  /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm:251
/usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm:125
/usr/local/idx/apache2/htdocs.savvygainesville/gainesville-homes-sold/c/listings:191
/usr/local/idx/apache2/htdocs.savvygainesville/gainesville-homes-sold/area/dhandler:17
raw error






























Can't call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm line 251.


Trace begun at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "prepare" on an undefined value at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm line 251.^J') called at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm line 251
IDX::GNV::Sold::_list('IDX::GNV::Sold', 'HASH(0x6519c28)', undef) called at /usr/local/idx/perl/lib/site_perl/5.16.3/IDX/GNV/Sold.pm line 125
IDX::GNV::Sold::list('IDX::GNV::Sold', 'HASH(0x6519c28)') called at /usr/local/idx/apache2/htdocs.savvygainesville/gainesville-homes-sold/c/listings line 191
HTML::Mason::Commands::__ANON__('p', 'HASH(0x6456b60)', 'args', 'HASH(0x645dac0)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x64ef7f8)', 'p', 'HASH(0x6456b60)', 'args', 'HASH(0x645dac0)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'p', 'HASH(0x6456b60)', 'args', 'HASH(0x645dac0)') called at /usr/local/idx/apache2/htdocs.savvygainesville/gainesville-homes-sold/area/dhandler line 17
HTML::Mason::Commands::__ANON__ at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x4e17b78)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x4e17938)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x4e17938)') called at /usr/local/idx/perl/lib/site_perl/5.16.3/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x4dfc2c8)', 'Apache2::RequestRec=SCALAR(0x628c1f0)') called at (eval 1252) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x628c1f0)') called at -e line 0
eval {...} at -e line 0