INSERT INTO `samosa_races` ( `race_id` , `description` , `num_winners` , `private` , `open` , `creation_date` ) VALUES ( NULL , 'PREMIER OF AMERICA', '1', '0', '1', NOW( ) ) MySQL said: Documentation #1452 - Cannot add or update a child row: a foreign key constraint fails (`brokenladder/samosa_races`, CONSTRAINT `samosa_races_ibfk_1` FOREIGN KEY (`race_id`) REFERENCES `samosa_assoc_elections_races` (`race_id`) ON DELETE CASCADE ON UPDATE CASCADE)