diff --git a/src/Model/Profile.php b/src/Model/Profile.php index d834024103..261c7cc22e 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -893,7 +893,8 @@ class Profile if (!empty($search)) { $searchTerm = '%' . $search . '%'; $cnt = DBA::fetchFirst("SELECT COUNT(*) AS `total` FROM `owner-view` - WHERE $publish AND NOT `blocked` AND NOT `account_removed` + WHERE NOT `blocked` AND NOT `account_removed` + $publish AND ((`name` LIKE ?) OR (`nickname` LIKE ?) OR (`about` LIKE ?) OR