$sth = $dbh->prepare(q{SELECT students.grade from students, users where students.id = users.id and users.id = ?}) $usr->execute($username)