my $sth = $dbh->prepare(q{SELECT * FROM Songs WHERE Songs.Artist LIKE '%'+?+'%' OR Songs.Artist LIKE '%'+?+'%' }); ... $sth->execute($one,$two);