Robie tigerr do mysql
quary = CREATE TRIGGER delete_estimate AFTER DELETE ON `estimate` FOR EACH ROW BEGIN DELETE FROM `estimate_field` WHERE `estimate_field`.`main_id` = OLD.'id'; END;
i dostaje taki bład
error =
#1064 - 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 'DELETE FROM `estimate_field` WHERE `estimate_field`.`main_id` = OL' at line 2
za chiny nie wiem co go powduje

