The ``table[name].name = new_name`` part should be surrounded by double backticks, or just left out (because you show it in the very next line)