my $sth=$dbh->prepare("SELECT * FROM ddts WHERE `Stat`=? AND `Project`=? AND `Version`=?"); $sth->execute("T","Def",join(@version));