summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py
index efd87d99bb..00f89ff02f 100644
--- a/synapse/storage/search.py
+++ b/synapse/storage/search.py
@@ -189,7 +189,7 @@ class SearchStore(BackgroundUpdateStore):
 
             count_sql = (
                 "SELECT room_id, count(*) as count FROM event_search"
-                " WHERE value MATCH ? AND "
+                " WHERE value MATCH ?"
             )
             count_args = [search_term] + count_args
         else: