... $user = "peter"; $sth=$dbh->prepare("SELECT user, name FROM tabelle WHERE user=$user && benannt=1"); ...