INSERT INTO `compta_options` (`id`, `name`, `value`) VALUES (1, 'invoice_index', '0') ON DUPLICATE KEY UPDATE id = id