my $sth = $database->prepare($query) or croak $database->errstr; $sth->bind_param( ':user', $user ) or croak $sth->errstr; $sth->bind_param( ':num', $num ) or croak $sth->errstr; ( $user_type, $user_num ) = $sth->fetchrow_array;