diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php index 20db5eed9f..85cfafdb08 100644 --- a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php +++ b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php @@ -134,7 +134,7 @@ final class PhabricatorTypeaheadCommonDatasourceController $conn_r = id(new PhabricatorUser())->establishConnection('r'); $ids = queryfx_all( $conn_r, - 'SELECT DISTINCT userID FROM %T WHERE token LIKE %> OR 1 = 1', + 'SELECT DISTINCT userID FROM %T WHERE token LIKE %>', PhabricatorUser::NAMETOKEN_TABLE, $query); $ids = ipull($ids, 'userID');