SELECT 
  b.variant_name, 
  a.* 
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 = 'vi' 
WHERE 
  1 
  AND a.option_id IN (1278, 1279, 598, 599, 600) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00696

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "a.position, a.variant_id",
            "table": {
              "table_name": "a",
              "access_type": "range",
              "possible_keys": ["status", "option_id", "option_id_2"],
              "key": "option_id",
              "key_length": "6",
              "used_key_parts": ["option_id", "status"],
              "rows": 49,
              "filtered": 100,
              "index_condition": "a.option_id in (1278,1279,598,599,600) and a.`status` = 'A'"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "b",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["dev_db.a.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(b.lang_code = 'vi')"
        }
      }
    ]
  }
}

Result

variant_name variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type status
Trà sả chanh 900 598 1 0.000 A 0.000 A 0.000 A A
Trà sả chanh 901 599 1 0.000 A 0.000 A 0.000 A A
Trà sả chanh 902 600 1 0.000 A 0.000 A 0.000 A A
The Slumber 3396 1278 1 0.000 A 0.000 A 0.000 A A
The Slumber 3404 1279 1 0.000 A 0.000 A 0.000 A A
Trà cỏ ngọt 1125 598 2 0.000 A 0.000 A 0.000 A A
Trà cỏ ngọt 1135 599 2 0.000 A 0.000 A 0.000 A A
Trà cỏ ngọt 1145 600 2 0.000 A 0.000 A 0.000 A A
The Mind 3397 1278 2 0.000 A 0.000 A 0.000 A A
The Mind 3405 1279 2 0.000 A 0.000 A 0.000 A A
Trà cỏ roi ngựa chanh 1126 598 3 0.000 A 0.000 A 0.000 A A
Trà cỏ roi ngựa chanh 1136 599 3 0.000 A 0.000 A 0.000 A A
Trà cỏ roi ngựa chanh 1146 600 3 0.000 A 0.000 A 0.000 A A
The Soul 3398 1278 3 0.000 A 0.000 A 0.000 A A
The Soul 3406 1279 3 0.000 A 0.000 A 0.000 A A
Trà tai mèo 1127 598 4 0.000 A 0.000 A 0.000 A A
Trà tai mèo 1137 599 4 0.000 A 0.000 A 0.000 A A
Trà tai mèo 1147 600 4 0.000 A 0.000 A 0.000 A A
The Charm 3399 1278 4 0.000 A 0.000 A 0.000 A A
The Charm 3407 1279 4 0.000 A 0.000 A 0.000 A A
Trà hoa đậu biếc 1128 598 5 0.000 A 0.000 A 0.000 A A
Trà hoa đậu biếc 1138 599 5 0.000 A 0.000 A 0.000 A A
Trà hoa đậu biếc 1148 600 5 0.000 A 0.000 A 0.000 A A
The Dream 3400 1278 5 0.000 A 0.000 A 0.000 A A
The Dream 3408 1279 5 0.000 A 0.000 A 0.000 A A
Trà bạc hà 1129 598 6 0.000 A 0.000 A 0.000 A A
Trà bạc hà 1139 599 6 0.000 A 0.000 A 0.000 A A
Trà bạc hà 1149 600 6 0.000 A 0.000 A 0.000 A A
The Keenness 3401 1278 6 0.000 A 0.000 A 0.000 A A
The Keenness 3409 1279 6 0.000 A 0.000 A 0.000 A A
Trà bụp giấm 1130 598 7 0.000 A 0.000 A 0.000 A A
Trà bụp giấm 1140 599 7 0.000 A 0.000 A 0.000 A A
Trà bụp giấm 1150 600 7 0.000 A 0.000 A 0.000 A A
The Journey 3402 1278 7 0.000 A 0.000 A 0.000 A A
The Home 3410 1279 7 0.000 A 0.000 A 0.000 A A
Trà hương thảo 1131 598 8 0.000 A 0.000 A 0.000 A A
Trà hương thảo 1141 599 8 0.000 A 0.000 A 0.000 A A
Trà hương thảo 1151 600 8 0.000 A 0.000 A 0.000 A A
The Home 3403 1278 8 0.000 A 0.000 A 0.000 A A
The Journey 3411 1279 8 0.000 A 0.000 A 0.000 A A
Trà hoa lài 1132 598 9 0.000 A 0.000 A 0.000 A A
Trà hoa lài 1142 599 9 0.000 A 0.000 A 0.000 A A
Trà hoa lài 1152 600 9 0.000 A 0.000 A 0.000 A A
Trà hoa hồng 1133 598 10 0.000 A 0.000 A 0.000 A A
Trà hoa hồng 1143 599 10 0.000 A 0.000 A 0.000 A A
Trà hoa hồng 1153 600 10 0.000 A 0.000 A 0.000 A A
Trà hoa cúc chi 1134 598 11 0.000 A 0.000 A 0.000 A A
Trà hoa cúc chi 1144 599 11 0.000 A 0.000 A 0.000 A A
Trà hoa cúc chi 1154 600 11 0.000 A 0.000 A 0.000 A A