my $sql = "select title from $TABLE2 where astype like " . $dbh->quote("%$query");