diff --git a/admin/pages/accounts.php b/admin/pages/accounts.php index 1f0d2a5c1..4185518a7 100644 --- a/admin/pages/accounts.php +++ b/admin/pages/accounts.php @@ -55,7 +55,7 @@ function verify_number($number, $name, $max_length) } ?> - + query("SELECT `id` FROM `accounts` WHERE `name` = {$id}"); + $query = $db->query("SELECT id FROM accounts WHERE name = {$id}"); if ($query->rowCount() == 1) { $query = $query->fetch(); $id = $query['id']; } } else { - $query = $db->query("SELECT `id` FROM `accounts` WHERE `name` = {$db->quote($searchName)}"); + $query = $db->query("SELECT id FROM accounts WHERE name = {$db->quote($searchName)}"); if ($query->rowCount() == 1) { $query = $query->fetch(); $id = $query['id']; } else { - $query = $db->query("SELECT `id`, `name` FROM `accounts` WHERE `name` LIKE {$db->quote("%{$searchName}%")}"); + $query = $db->query("SELECT id, name FROM accounts WHERE name LIKE {$db->quote("%{$searchName}%")}"); if ($query->rowCount() > 0 && $query->rowCount() <= 10) { echo 'Do you mean?