diff --git a/easyquery.py b/easyquery.py index 6eed62a..ae75a3e 100644 --- a/easyquery.py +++ b/easyquery.py @@ -249,9 +249,9 @@ def filter(self, table, column_slice=None): table : filtered table """ if self._operator is None and self._operands is None: - return table + return table if column_slice is None else self._get_table_column(table, column_slice) - if self._operator == 'AND': + if self._operator == 'AND' and column_slice is None: for op in self._operands: table = op.filter(table) return table