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