CRM-14510 - Not all member sync roles are not removed when deleting a membership

Not all member sync roles are not removed when deleting a membership due to an incorrectly generated db_delete query.