I\'m new to Python and Python\'s MySQL adapter. I\'m not sure if I\'m missing something obvious here:
db = MySQLdb.connect(# db details omitted) cursor = se
Perhaps you are violating a foreign key constraint.