I think I found them .. the problem is how to fix them?
MySQL> select id, course, module, instance, section, idnumber, deletioninprogress from mdl_course_modules where deletioninprogress = '1';
+--------+--------+--------+----------+---------+-----------------+--------------------+
| id | course | module | instance | section | idnumber | deletioninprogress |
+--------+--------+--------+----------+---------+-----------------+--------------------+
| 754132 | 5973 | 35 | 648 | 102932 | mm:54:4990:24:t | 1 |
| 754133 | 5973 | 35 | 649 | 102932 | mm:99:4990:24:t | 1 |
| 754134 | 5973 | 5 | 31294 | 102932 | | 1 |
| 791661 | 6181 | 35 | 753 | 105978 | mm:66:4990:22:t | 1 |
| 791662 | 6181 | 35 | 754 | 105978 | mm:65:4990:25:t | 1 |
| 791663 | 6181 | 35 | 755 | 105978 | mm:53:4990:24:t | 1 |
| 794212 | 6196 | 35 | 788 | 106137 | mm:66:4990:22:t | 1 |
| 794213 | 6196 | 35 | 789 | 106137 | mm:65:4990:25:t | 1 |
| 794214 | 6196 | 35 | 790 | 106137 | mm:53:4990:24:t | 1 |
| 799350 | 6217 | 13 | 289508 | 106452 | | 1 |
| 799351 | 6217 | 13 | 289509 | 106452 | | 1 |
| 799352 | 6217 | 13 | 289510 | 106452 | | 1 |
| 799353 | 6217 | 37 | 112299 | 106452 | | 1 |
| 799354 | 6217 | 13 | 289511 | 106452 | | 1 |
| 799355 | 6217 | 37 | 112300 | 106452 | | 1 |
| 799356 | 6217 | 13 | 289512 | 106452 | | 1 |
| 799357 | 6217 | 13 | 289513 | 106452 | | 1 |
| 799358 | 6217 | 37 | 112301 | 106452 | | 1 |
| 799359 | 6217 | 13 | 289514 | 106452 | | 1 |
| 799360 | 6217 | 37 | 112302 | 106452 | | 1 |
| 799361 | 6217 | 6 | 3039 | 106452 | | 1 |
| 799362 | 6217 | 50 | 138 | 106452 | | 1 |
+--------+--------+--------+----------+---------+-----------------+--------------------+
22 rows in set (0.11 sec)
What does instance and section refer to?