$sth = $dbh->prepare( sprintf( q(select * from %s where %s=?), $dbh->quote_identifier($table), $dbh->quote_identifier($col), ) ); $sth->execute($sel);