-- DELETE INCORRECT SMART CUBIC SKILLS DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 96 ); DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 1 ); DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 2 ); DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 3 ); DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 104 ); DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 1); DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 2); DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 3); DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 106 ); DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 1 ); DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 2 ); DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 3 ); DELETE FROM character_skills where skill_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 111 ); DELETE FROM character_skills where skill_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 1 ); DELETE FROM character_skills where skill_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 2 ); DELETE FROM character_skills where skill_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 3 ); -- DELETE INCORRECT SMART CUBIC SHORTCUTS DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 96 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 1 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 2 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 96 and class_index = 3 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 104 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 1); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 2); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 104 and class_index = 3); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 106 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 1 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 2 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 106 and class_index = 3 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 0 and charid in ( select charid from characters where base_class = 111 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 1 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 1 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 2 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 2 ); DELETE FROM character_shortcuts where shortcut_id = 779 and class_index = 3 and charid in ( select charid from character_subclasses where class_id = 111 and class_index = 3 );