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 ' '[null]', 'rand','smart','["1482","1670","1674","1637","1578","1671","1664",...' at line 1 INSERT INTO `dtbible_bible`.`sessions` (`id`, `user`, `set`,`type`,`source`,`current`,`deck`,`done`, `created`, `lastused`) VALUES (NULL, , '[null]', 'rand','smart','["1482","1670","1674","1637","1578","1671","1664","1669","1661","1392","1272"]','["1635","1657","1677","1521","1393","1506","1267","1634","1382"]','[]',CURRENT_TIMESTAMP,CURRENT_TIMESTAMP)