System error error: Could not get data: Unknown column 's.NPClevel' in 'where clause' at /home/lucy/htdocs/newcspells.html line 63. context: ... 59: $datewhere and s.) . $class . qq(level < 255 and s.id=c.id 60: group by c.id order by c.id); 61: 62: # $m->out($query); 63: my $sth = $dbh->prepare($query); 64: $sth->execute() || die "Could not get data: ", $dbh->errstr; 65: my $numfound = $sth->rows(); 66: 67: </%init> ... code stack: /home/lucy/htdocs/newcspells.html:63 g /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm:134 g /home/lucy/htdocs/autohandler:8 g /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm:134 g
Looks like some error in your SQL select statement.