System error

error:  Can't call method "selectrow_hashref" on unblessed reference at /home/mc2/public_html/autohandler line 137.
context: 
... 
133:  exit;
134:  } else {
135:  $current_group = $uri[2];
136:  $sql = "SELECT * FROM groups WHERE login = ?";
137:  $query_result = $dbh->selectrow_hashref($sql, undef, $current_group);
138: 
139:  if (!$query_result->{gid}) {
140:  $m->comp('/shared/header.mc');
141:  $m->comp('/errors/error.html', error=>'No group data found. <br>Either the group you were trying to look at doesn\'t exist, or you are following an old link. <br>If you\'re sure the group exists, go back to My Communities and try again' );
... 
code stack:  /home/mc2/public_html/autohandler:137
raw error






























Can't call method "selectrow_hashref" on unblessed reference at /home/mc2/public_html/autohandler line 137.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "selectrow_hashref" on unblessed reference at /home/mc2/public_html/autohandler line 137.^J') called at /home/mc2/public_html/autohandler line 137
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x17bde20)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1257
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 466
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 466
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('MasonX::Request::WithApacheSession=HASH(0x19bebe0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0x19bebe0)') called at /usr/share/perl5/MasonX/Request/WithApacheSession.pm line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0x19bebe0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 832
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xbd1700)', 'Apache=SCALAR(0x19587d0)') called at /etc/apache-perl/handler.pl line 93
HTML::Mason::handler('Apache=SCALAR(0x19587d0)') called at /dev/null line 0
eval {...} at /dev/null line 0