Well, I don't see why you need the '...' on line 195, you may also need to put '$sta->finish ();', '$stb->finish ();', '$stc->finish ();', '$sth->finish ();' before '$db->disconnect();'. It would also be better to allow $sth to be changed, so that you just have one variable rather than multiple for the same thing.
EDIT: By allow it to be changed I mean rather than use 'my' just allow it to be changed. Example below.
Code:
$sth = $dbh->prepare("SELECT name, hp, mana, race, class, level, armor, aa FROM leaderboard ORDER BY mana DESC LIMIT 10");
$sth = $dbh->prepare("SELECT name, hp, mana, race, class, level, armor, aa FROM leaderboard ORDER BY armor DESC LIMIT 10");