diff --git a/index.js b/index.js index 3df6543..c9c5317 100644 --- a/index.js +++ b/index.js @@ -786,10 +786,9 @@ var Base = Class.extend({ * @return Promise(runSql) */ remove: function (table, ids, callback) { - var sql = 'DELETE FROM ' + this._escapeDDL + table + +this._escapeDDL; - var searchClause = ''; + var sql = 'DELETE FROM ' + this._escapeDDL + table + this._escapeDDL; - return this.runSql(sql + this.buildWhereClause(ids)).nodeify(callback); + return this.runSql(sql + ' ' + this.buildWhereClause(ids)).nodeify(callback); }, /**