--- backends/rdbms_common.py.orig 2004-07-03 16:20:22.000000000 +0200 +++ backends/rdbms_common.py 2004-07-03 15:28:59.000000000 +0200 @@ -2076,7 +2070,7 @@ timezone = self.db.getUserTimezone() # vars to hold the components of the SQL statement - frum = ['_'+cn] # FROM clauses + frum = [] # FROM clauses loj = [] # LEFT OUTER JOIN clauses where = [] # WHERE clauses args = [] # *any* positional arguments @@ -2243,6 +2237,7 @@ orderby.append(o) # construct the SQL + frum.append('_'+cn) frum = ','.join(frum) if where: where = ' where ' + (' and '.join(where))