**Code:**

SaveCharacter(mob/M)

var/combineStatements = "";

var/loop = 0

var/list/VARIABLES = M.vars

for(var/V=1 to M.vars.len)

{

if(!ignored_vars.Find(VARIABLES[V]))

{

if(loop>0) { combineStatements += ", "; }

if(islist(VARIABLES[V]))

{

combineStatements += "[VARIABLES[V]]='[implodetext(VARIABLES[VARIABLES[V]],"|")]'"

loop++;

continue

}

if(isnull(VARIABLES[VARIABLES[V]]))

{

combineStatements += "[VARIABLES[V]]='null'"

loop++;

continue

}

combineStatements += "[VARIABLES[V]]='[VARIABLES[VARIABLES[V]]]'";

loop++;

}

}

var/query = "UPDATE `[sql_table]` SET [combineStatements] WHERE name='[M.name]';"

return query

**Problem description:**

I'm trying to save lists in MySQL but it just ends up being /list can anyone point out what I'm doing wrong?