diff --git a/modules/mysql/server.lua b/modules/mysql/server.lua index 1bfd30295a..13e2e9ec02 100644 --- a/modules/mysql/server.lua +++ b/modules/mysql/server.lua @@ -129,7 +129,7 @@ function db.savePlayer(owner, inventory) end function db.saveStash(owner, dbId, inventory) - return MySQL.prepare(Query.UPSERT_STASH, { owner and tostring(owner) or '', dbId, inventory }) + return MySQL.prepare(Query.UPSERT_STASH, { inventory, owner and tostring(owner) or '', dbId }) end function db.loadStash(owner, name)