// попробуй заменить: echo join(", ", $results); // на if(!empty($results)) { echo '<pre>'; print_r($results); echo '</pre>'; } else { echo '<strong>no results found</strong>'; }