Invalid query: 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 ' '2021-10-22 13:57:50')' at line 1 Whole query: INSERT INTO vizite (tip, id_pag, data) VALUES (1, , '2021-10-22 13:57:50');