SELECT 
  c.product_id AS cur_product_id, 
  a.*, 
  b.option_name, 
  b.internal_option_name, 
  b.option_text, 
  b.description, 
  b.inner_hint, 
  b.incorrect_message, 
  b.comment 
FROM 
  cscart_product_options as a 
  LEFT JOIN cscart_product_options_descriptions as b ON a.option_id = b.option_id 
  AND b.lang_code = 'vi' 
  LEFT JOIN cscart_product_global_option_links as c ON c.option_id = a.option_id 
WHERE 
  c.product_id IN (
    1942, 48503, 1946, 44946, 44943, 44944, 
    44947, 44945, 856, 6282, 6284, 1429, 
    6211, 31957, 4305, 28167, 33716, 3885, 
    51, 5628, 33717, 21680, 6212, 3886, 
    28165, 1901, 1899, 5619, 5621, 26977, 
    6286, 33718
  ) 
  AND a.product_id = 0 
  AND a.status = 'A' 
ORDER BY 
  a.position

Query time 0.00967

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "a.position",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "c",
              "access_type": "range",
              "possible_keys": ["PRIMARY", "product_id"],
              "key": "product_id",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "rows": 34,
              "filtered": 100,
              "index_condition": "c.product_id in (1942,48503,1946,44946,44943,44944,44947,44945,856,6282,6284,1429,6211,31957,4305,28167,33716,3885,51,5628,33717,21680,6212,3886,28165,1901,1899,5619,5621,26977,6286,33718)"
            }
          },
          {
            "table": {
              "table_name": "a",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "c_status"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["option_id"],
              "ref": ["dev_db.c.option_id"],
              "rows": 1,
              "filtered": 95.89905548,
              "attached_condition": "a.product_id = 0 and a.`status` = 'A'"
            }
          },
          {
            "table": {
              "table_name": "b",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["option_id", "lang_code"],
              "ref": ["dev_db.c.option_id", "const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(b.lang_code = 'vi')"
            }
          }
        ]
      }
    }
  }
}

Result

cur_product_id option_id product_id company_id option_type regexp required multiupload allowed_extensions max_file_size missing_variants_handling status position value option_name internal_option_name option_text description inner_hint incorrect_message comment
856 1249 0 534 R N N 0 M A 0 Add-on 10051_02 - Add-on
1899 816 0 252 R Y N 0 M A 0 Lựa chọn Lựa chọn
1899 817 0 252 R Y N 0 M A 0 Chọn size Chọn size
1901 814 0 252 R Y N 0 M A 0 Lựa chọn Lựa chọn
1901 815 0 252 R Y N 0 M A 0 Chọn size Chọn size
5619 1151 0 434 R Y N 0 M A 0 Tùy chọn Tùy chọn
5621 1152 0 434 R Y N 0 M A 0 Tùy chọn Tùy chọn
5628 1155 0 434 R Y N 0 M A 0 Tùy chọn Tùy chọn
6211 1156 0 434 R Y N 0 M A 0 Tùy chọn Tùy chọn
21680 1293 0 277 R Y N 0 M A 0 Chọn màu 10302_05 - màu
6282 1270 0 467 R Y N 0 M A 2 B - Chọn màu sắc vải 10499_03 - màu sắc
6284 1270 0 467 R Y N 0 M A 2 B - Chọn màu sắc vải 10499_03 - màu sắc
6286 1270 0 467 R Y N 0 M A 2 B - Chọn màu sắc vải 10499_03 - màu sắc
44943 1295 0 256 C N N 0 M A 3 Add-on May theo số đo
44944 1295 0 256 C N N 0 M A 3 Add-on May theo số đo
44945 1295 0 256 C N N 0 M A 3 Add-on May theo số đo
44946 1295 0 256 C N N 0 M A 3 Add-on May theo số đo
44947 1295 0 256 C N N 0 M A 3 Add-on May theo số đo
26977 712 0 572 R Y N 0 M A 10 Set vớ Set vớ