System error

error:  Can't call method "selectall_hashref" on an undefined value at /home/count/www/fridge.genericorp.net/public_html/top.html line 45.
context: 
... 
41:  my $fridges = [
42:  $user ? sort { $b->{fridge_id} <=> $a->{fridge_id} } values %{$dbh->selectall_hashref("select * from fridges where owner = ?","fridge_id",{},$user->{user_id})} : (),
43:  $user ?
44:  (sort { $a->{fridge_id} <=> $b->{fridge_id} } values %{$dbh->selectall_hashref("select * from fridges where private = 0 and (owner is null or owner != ?)","fridge_id",{},$user->{user_id})})
45:  : (sort { $a->{fridge_id} <=> $b->{fridge_id} } values %{$dbh->selectall_hashref("select * from fridges where private = 0","fridge_id")})
46:  ];
47: 
48:  my $fridge_id = $ARGS{fridge_id} || $r->pnotes("fridge_id") || 1;
49:  my $fridge = $get_fridge->($dbh,$fridge_id) if $fridge_id;
... 
code stack:  /home/count/www/fridge.genericorp.net/public_html/top.html:45
/home/count/www/fridge.genericorp.net/public_html/autohandler:48
raw error






























Can't call method "selectall_hashref" on an undefined value at /home/count/www/fridge.genericorp.net/public_html/top.html line 45.


Trace begun at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "selectall_hashref" on an undefined value at /home/count/www/fridge.genericorp.net/public_html/top.html line 45.^J') called at /home/count/www/fridge.genericorp.net/public_html/top.html line 45
HTML::Mason::Commands::__ANON__ at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9ce64e0)') called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 1302
eval {...} at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x96add08)') called at /home/count/www/fridge.genericorp.net/public_html/autohandler line 48
HTML::Mason::Commands::__ANON__ at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x9ce6310)') called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 1297
eval {...} at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 481
eval {...} at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x96add08)') called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x96add08)') called at /usr/local/apache1.3/perl/lib/site_perl/5.12.4/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x9253d90)', 'Apache=SCALAR(0x97009e8)') called at /home/count/www/fridge.genericorp.net/etc/mason_init.pl line 28
PublicFridge::ApacheHandler::handler('Apache=SCALAR(0x97009e8)') called at /dev/null line 0
eval {...} at /dev/null line 0