diff --git a/splitgraph/core/sql/queries.py b/splitgraph/core/sql/queries.py index 39e40089..ec244c31 100644 --- a/splitgraph/core/sql/queries.py +++ b/splitgraph/core/sql/queries.py @@ -30,7 +30,7 @@ def select( if table_args: query += SQL(table_args) if where: - query += SQL(" WHERE " + where) + query += SQL(" WHERE {}").format(SQL(where)) return query