Есть такой код:
$search_name = $_GET['search-text'];
$searching = $pdo->query("SELECT * FROM salones WHERE service_name = LIKE '%$search_name%'");
$fetch = $searching->fetch();
дает ошибку: Fatal error: Uncaught Error: Call to a member function fetch() on boolean in C:\OSPanel\domains\salon\salones\index.php:111 Stack trace: #0 {main} thrown in C:\OSPanel\domains\salon\salones\index.php on line 111
Скажите пожалуйста как исправить?