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 (1480, 1158, 1555) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00447

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": 21,
              "filtered": 100,
              "index_condition": "a.option_id in (1480,1158,1555) 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
3887 1480 0 0.000 A 0.000 A 0.000 A A
4046 1555 0 0.000 A 0.000 A 0.000 A A
Nâu tan 2818 1158 1 0.000 A 0.000 A 0.000 A A
3886 1480 1 0.000 A 0.000 A 0.000 A A
4045 1555 1 0.000 A 0.000 A 0.000 A A
Nâu nhạt 2819 1158 2 0.000 A 0.000 A 0.000 A A
Nâu vừa 2820 1158 3 0.000 A 0.000 A 0.000 A A
Nâu đậm 3608 1158 4 0.000 A 0.000 A 0.000 A A
Nâu Mahogany 3609 1158 5 0.000 A 0.000 A 0.000 A A
Nâu Socola 3610 1158 6 0.000 A 0.000 A 0.000 A A
Be 3611 1158 7 0.000 A 0.000 A 0.000 A A
Cam 3612 1158 8 0.000 A 0.000 A 0.000 A A
Vàng 3613 1158 9 0.000 A 0.000 A 0.000 A A
Đỏ 3614 1158 10 0.000 A 0.000 A 0.000 A A
Đỏ sẫm 3615 1158 11 0.000 A 0.000 A 0.000 A A
Xanh ngọc lam 3616 1158 12 0.000 A 0.000 A 0.000 A A
Xanh đậm Navy 3617 1158 13 0.000 A 0.000 A 0.000 A A
Tím 3618 1158 14 0.000 A 0.000 A 0.000 A A
Xanh lá Kelly 3619 1158 15 0.000 A 0.000 A 0.000 A A
Xanh lá 3620 1158 16 0.000 A 0.000 A 0.000 A A
Xanh dương Aqua.G 3621 1158 17 0.000 A 0.000 A 0.000 A A