You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(, , ) VALUES ('50441df980caf863f2c7b7f773dc5e49', 0, '1547929339')' at line 2 SQL=INSERT INTO (, , ) VALUES ('50441df980caf863f2c7b7f773dc5e49', 0, '1547929339')