Ошибка: Fatal error: Call to a member function query() on a non-object in C:\OSPanel\domains\localhost\rabotnik\passengers\search.php on line 12?
mysqli_query $pdo
Ничего странного не находите?
$query = 'SELECT id_passengers, psurname, pname, patrongmic, date_of_birth, passport, issued_by, date_of_issue, login, passwors, phone FROM passengers';
Вангую passwors != password