This may seem very basic but I cannot find correct syntax when using a variable.
This works:
local updateTable = [[UPDATE userDetails SET month_id = 100 WHERE id=1]]
db:exec( updateTable)
the below doesn't:
local myVariable = 100
local updateTable = [[UPDATE userDetails SET month_id = myVariable WHERE id=1]]
db:exec( updateTable)