You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 17 SQL=INSERT INTO `uarwm_virtuemart_order_calc_rules` (`virtuemart_order_calc_rule_id`, `virtuemart_calc_id`, `virtuemart_order_id`, `virtuemart_vendor_id`, `virtuemart_order_item_id`, `calc_rule_name`, `calc_kind`, `calc_mathop`, `calc_amount`, `calc_result`, `calc_value`, `calc_cur¦¶?ª×\9€ÒvëæV¸†‡Ü”ÙÒvëæVªªeated_by`, `modified_on`, `modified_by`, `locked_on`, `locked_by`) VALUES (1, 1, 1, 1, 1, 'Tax 21%', 'VatTax', '+%', '10.50000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (2, 1, 1, 1, 2, 'Tax 21%', 'VatTax', '+%', '0.84000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (3, 1, 1, 1, 3, 'Tax 21%', 'VatTax', '+%', '0.84000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (4, 1, 1, 1, 4, 'Tax 21%', 'VatTax', '+%', '10.50000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (5, 1, 1, 1, 5, 'Tax 21%', 'VatTax', '+%', '5.25000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (6, 1, 1, 1, 6, 'Tax 21%', 'VatTax', '+%', '8.40000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (7, 1, 1, 1, 7, 'Tax 21%', 'VatTax', '+%', '13.36000', '346.21000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (8, 1, 1, 1, NULL, 'Tax 21%', 'payment', '+%', '0.00000', '0.00000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (9, 1, 1, 1, NULL, 'Tax 21%', 'shipment', '+%', '0.00000', '0.00000', '21.00000', 47, '', '2013-08-26 04:20:44', 42, '2013-08-26 04:20:44', 42, '0000-00-00 00:00:00', 0), (10, 1, 2, 1, 8, 'Tax 21%', 'VatTax', '+%', '189.63000', '379.26000', '21.00000', 47, '', '2013-09-06 03:49:30', 42, '2013-09-06 03:49:30', 42, '0000-00-00 00:00:00', 0), (11, 1, 2, 1, NULL, 'Tax 21%', 'payment', '+%', '0.00000', '0.00000', '21.00000', 47, '', '2013-09-06 03:49:30', 42, '2013-09-06 03:49:30', 42, '0000-00-00 00:00:00', 0), (12, 1, 2, 1, NULL, 'Tax 21%', 'shipment', '+%', '0.00000', '0.00000', '21.00000', 47, '', '2013-09-06 03:49:30', 42, '2013-09-06 03:49:30', 42, '0000-00-00 00:00:00', 0), (13, 1, 3, 1, 9, 'Tax 21%', 'VatTax', '+%', '7.87000', '8.50000', '21.00000', 47, '', '2013-09-06 03:55:10', 42, '2013-09-06 03:55:10', 42, '0000-00-00 00:00:00', 0), (14, 1, 3, 1, 10, 'Tax 21%', 'VatTax', '+%', '0.63000', '8.50000', '21.00000', 47, '', '2013-09-06 03:55:10', 42, '2013-09-06 03:55:10', 42, '0000-00-00 00:00:00', 0), (15, 1, 3, 1, NULL, 'Tax 21%', 'payment', '+%', '0.00000', '0.00000', '21.00000', 47, '', '2013-09-06 03:55:10', 42, '2013-09-06 03:55:10', 42, '0000-00-00 00:00:00', 0), (16, 1, 3, 1, NULL, 'Tax 21%', 'shipment', '+%', '0.00000', '0.00000'