DeleteQuery: Don't use tableName here because it causes trouble when table name ends with tablePrefix.