SELECT 
  b.variant_name, 
  a.*, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier, 
    a.modifier
  ) as modifier, 
  IF(
    shared_option_variants.variant_id IS NOT NULL, 
    shared_option_variants.modifier_type, 
    a.modifier_type
  ) as modifier_type 
FROM 
  cscart_product_option_variants AS a 
  LEFT JOIN cscart_product_option_variants_descriptions AS b ON b.variant_id = a.variant_id 
  AND b.lang_code = 'fr' 
  LEFT JOIN cscart_ult_product_option_variants shared_option_variants ON shared_option_variants.variant_id = a.variant_id 
  AND shared_option_variants.company_id = 1 
WHERE 
  1 
  AND a.option_id IN (770, 781) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "10.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "shared_option_variants",
            "access_type": "system",
            "possible_keys": [
              "PRIMARY",
              "company_id"
            ],
            "rows_examined_per_scan": 0,
            "rows_produced_per_join": 1,
            "filtered": "0.00",
            "const_row_not_found": true,
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "variant_id",
              "company_id",
              "modifier",
              "modifier_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "a",
            "access_type": "range",
            "possible_keys": [
              "option_id",
              "option_id_2",
              "status"
            ],
            "key": "option_id",
            "used_key_parts": [
              "option_id",
              "status"
            ],
            "key_length": "6",
            "rows_examined_per_scan": 10,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "index_condition": "((`ea201_diorama`.`a`.`option_id` in (770,781)) and (`ea201_diorama`.`a`.`status` = 'A'))",
            "cost_info": {
              "read_cost": "14.01",
              "eval_cost": "2.00",
              "prefix_cost": "16.01",
              "data_read_per_join": "480"
            },
            "used_columns": [
              "variant_id",
              "option_id",
              "position",
              "modifier",
              "modifier_type",
              "weight_modifier",
              "weight_modifier_type",
              "point_modifier",
              "point_modifier_type",
              "status"
            ]
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "ea201_diorama.a.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "2.00",
              "prefix_cost": "18.01",
              "data_read_per_join": "7K"
            },
            "used_columns": [
              "variant_id",
              "lang_code",
              "variant_name"
            ]
          }
        }
      ]
    }
  }
}

Result

variant_name variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type status
Echelle 1:160 - 13 mm long 3127 770 1 0.000 A 0.000 A 0.000 A A
Echelle 1:160 - 7 mm haut 3217 781 1 0.000 A 0.000 A 0.000 A A
Echelle 1:100 - 21 mm long 3128 770 2 0.000 A 0.000 A 0.000 A A
Echelle 1:100 - 9 mm haut 10 mm large 3218 781 2 0.000 A 0.000 A 0.000 A A
Echelle 1:87 - 24 mm long 3130 770 3 0.000 A 0.000 A 0.000 A A
Echelle 1:87 - 10 mm haut 10,5 mm large 3219 781 3 0.000 A 0.000 A 0.000 A A
Echelle 1:50 - 17 mm haut x 42 mm long 3132 770 4 0.500 A 0.000 A 0.000 A A
Echelle 1:50 - 17 mm haut x 19 mm large 3220 781 4 0.500 A 0.000 A 0.000 A A
Echelle 1:43 - 48 mm long 3133 770 5 1.500 A 0.000 A 0.000 A A
Echelle 1:43 - 19 mm haut 3221 781 5 1.900 A 0.000 A 0.000 A A
Echelle 1:32 - 65 mm long 3134 770 6 3.500 A 0.000 A 0.000 A A
Echelle 1:32 - 26 mm haut 3222 781 6 3.500 A 0.000 A 0.000 A A
Echelle 1:22.5 - 38 mm de large 3223 781 7 6.000 A 0.000 A 0.000 A A
Echelle 1:25 - 82 mm long 3258 770 7 6.000 A 0.000 A 0.000 A A
Echelle 1:22.5 - 90 mm long 3135 770 8 6.500 A 0.000 A 0.000 A A