Guys, thx for the atention, you are the best.
I solved it with:
Changing the db.query param
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + '1' WHERE `id` = '" .. player:getAccountId() .. "';")...