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 (996, 1137, 1138, 822, 954, 98) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00434

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": 12,
              "filtered": 100,
              "index_condition": "a.option_id in (996,1137,1138,822,954,98) 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
Đĩa kê tách vuông 136 98 0 88000.000 A 0.000 A 0.000 A A
Thanh tre 1872 822 0 0.000 A 0.000 A 0.000 A A
Con cá 1873 822 0 6000.000 A 0.000 A 0.000 A A
Con bướm 1874 822 0 6000.000 A 0.000 A 0.000 A A
Trắng hồng 2357 996 0 0.000 A 0.000 A 0.000 A A
Xanh hồng 2358 996 0 0.000 A 0.000 A 0.000 A A
Xanh Celadon 2243 954 1 23000.000 A 0.000 A 0.000 A A
Xanh sóng biển 2761 1137 1 0.000 A 0.000 A 0.000 A A
D21: 21.5 x 9 cm 2763 1138 1 62000.000 A 0.000 A 0.000 A A
Trắng Matte 2244 954 2 0.000 A 0.000 A 0.000 A A
Xám xanh 2762 1137 2 0.000 A 0.000 A 0.000 A A
D18: 17.2 x 7.5 cm 2764 1138 2 0.000 A 0.000 A 0.000 A A