I went from SQLite to MySQL and now I have this issue.. this was not happening with previous SQLite system.. basically what I want is insert a JSON to MySQL, this is the example:
UPDATE stats SET achievements = `[ { "Filthy Rich": "10\/12\/14", "I keep on rollin'": "10\/12\/14" } ]` WHERE account = 'Feche'
And this is the error that I get:
(1054) Unknown column '[ { "Filthy Rich": "10\/12\/14", "I keep on rollin'": "10\/12\/14" } ]' in 'field list'
I've been searching but all answers are for PHP and non for Lua.. AFAIK PHP has an automatic encode that scapes all characters, but there is none in Lua.. thanks.