Traceback (most recent call last): File "import_ftp_users-v2.py", line 35, in cursor.executemany(insert_vfs_permissions,perm_args) File "/usr/lib/pymodules/python2.7/MySQLdb/cursors.py", line 206, in executemany r = r + self.execute(query, a) File "/usr/lib/pymodules/python2.7/MySQLdb/cursors.py", line 174, in execute self.errorhandler(self, exc, value) File "/usr/lib/pymodules/python2.7/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3")