$results = $dbh->selectall_arrayref("SELECT ID, sentence FROM texts WHERE sentence LIKE '%$query%'"