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 = 'en' 
  LEFT JOIN cscart_product_global_option_links as c ON c.option_id = a.option_id 
  INNER JOIN cscart_ult_objects_sharing ON (
    cscart_ult_objects_sharing.share_object_id = a.option_id 
    AND cscart_ult_objects_sharing.share_company_id = 1 
    AND cscart_ult_objects_sharing.share_object_type = 'product_options'
  ) 
WHERE 
  c.product_id IN (
    12684, 12714, 13260, 13267, 12349, 12364, 
    12259, 12504, 12524, 12379, 6843, 6840, 
    6841, 6846, 13274, 13286, 13280, 13292, 
    6962, 6966, 6967, 6965, 6963, 6952, 
    6953, 3484, 3487, 3485, 3486, 6969, 
    3434, 6947, 3424, 3911, 3422, 3910, 
    3421, 3909, 3420, 3423, 3912, 3430, 
    3429, 3437, 3436, 3438, 6959, 3425, 
    6958, 6960, 6968, 6961, 6964, 6957, 
    6956, 6954, 6955, 6948, 3914, 3913, 
    6950, 6949, 3477, 3452, 3478, 3479, 
    3453, 3491, 3488, 3497, 3495, 3489, 
    3492, 3496, 3490, 3494, 6951, 3502, 
    3503, 3493, 3498, 3428, 3433, 3432, 
    12594, 12609, 12424, 12554, 12536, 
    12546, 13127, 12464, 12624, 12654, 
    13148, 13153
  ) 
  AND a.product_id = 0 
  AND a.status = 'A' 
ORDER BY 
  a.position

Query time 0.00272

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "26.72"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "2.23"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "index",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "rows_examined_per_scan": 178,
            "rows_produced_per_join": 1,
            "filtered": "1.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "18.41",
              "eval_cost": "0.18",
              "prefix_cost": "18.59",
              "data_read_per_join": "284"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "((`test2_gaseus`.`cscart_ult_objects_sharing`.`share_company_id` = 1) and (`test2_gaseus`.`cscart_ult_objects_sharing`.`share_object_type` = 'product_options'))"
          }
        },
        {
          "table": {
            "table_name": "a",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "c_status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id"
            ],
            "key_length": "3",
            "ref": [
              "test2_gaseus.cscart_ult_objects_sharing.share_object_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "55.17",
            "index_condition": "(`test2_gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `test2_gaseus`.`a`.`option_id`)",
            "cost_info": {
              "read_cost": "0.45",
              "eval_cost": "0.10",
              "prefix_cost": "19.21",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "option_id",
              "product_id",
              "company_id",
              "option_type",
              "regexp",
              "required",
              "multiupload",
              "allowed_extensions",
              "max_file_size",
              "missing_variants_handling",
              "status",
              "position",
              "value",
              "yml2_type_options",
              "yml2_option_param"
            ],
            "attached_condition": "((`test2_gaseus`.`a`.`product_id` = 0) and (`test2_gaseus`.`a`.`status` = 'A'))"
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "test2_gaseus.a.option_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.25",
              "eval_cost": "0.10",
              "prefix_cost": "19.56",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "option_id",
              "lang_code",
              "option_name",
              "internal_option_name",
              "option_text",
              "description",
              "comment",
              "inner_hint",
              "incorrect_message"
            ]
          }
        },
        {
          "table": {
            "table_name": "c",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "product_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id"
            ],
            "key_length": "3",
            "ref": [
              "test2_gaseus.cscart_ult_objects_sharing.share_object_id"
            ],
            "rows_examined_per_scan": 45,
            "rows_produced_per_join": 2,
            "filtered": "5.04",
            "using_index": true,
            "cost_info": {
              "read_cost": "0.52",
              "eval_cost": "0.22",
              "prefix_cost": "24.49",
              "data_read_per_join": "17"
            },
            "used_columns": [
              "option_id",
              "product_id"
            ],
            "attached_condition": "((`test2_gaseus`.`c`.`option_id` = `test2_gaseus`.`a`.`option_id`) and (`test2_gaseus`.`c`.`product_id` in (12684,12714,13260,13267,12349,12364,12259,12504,12524,12379,6843,6840,6841,6846,13274,13286,13280,13292,6962,6966,6967,6965,6963,6952,6953,3484,3487,3485,3486,6969,3434,6947,3424,3911,3422,3910,3421,3909,3420,3423,3912,3430,3429,3437,3436,3438,6959,3425,6958,6960,6968,6961,6964,6957,6956,6954,6955,6948,3914,3913,6950,6949,3477,3452,3478,3479,3453,3491,3488,3497,3495,3489,3492,3496,3490,3494,6951,3502,3503,3493,3498,3428,3433,3432,12594,12609,12424,12554,12536,12546,13127,12464,12624,12654,13148,13153)))"
          }
        }
      ]
    }
  }
}

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 yml2_type_options yml2_option_param option_name internal_option_name option_text description inner_hint incorrect_message comment
12259 83 0 1 S N N 0 M A 3 Connection type Connection type
12349 83 0 1 S N N 0 M A 3 Connection type Connection type
12364 83 0 1 S N N 0 M A 3 Connection type Connection type
12379 83 0 1 S N N 0 M A 3 Connection type Connection type
12424 83 0 1 S N N 0 M A 3 Connection type Connection type
12464 83 0 1 S N N 0 M A 3 Connection type Connection type
12504 83 0 1 S N N 0 M A 3 Connection type Connection type
12524 83 0 1 S N N 0 M A 3 Connection type Connection type
12536 83 0 1 S N N 0 M A 3 Connection type Connection type
12546 83 0 1 S N N 0 M A 3 Connection type Connection type
12554 83 0 1 S N N 0 M A 3 Connection type Connection type
12594 83 0 1 S N N 0 M A 3 Connection type Connection type
12609 83 0 1 S N N 0 M A 3 Connection type Connection type
12624 83 0 1 S N N 0 M A 3 Connection type Connection type
12654 83 0 1 S N N 0 M A 3 Connection type Connection type
12684 83 0 1 S N N 0 M A 3 Connection type Connection type
12714 83 0 1 S N N 0 M A 3 Connection type Connection type
12259 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12349 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12364 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12379 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12464 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12504 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12524 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12624 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12654 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12684 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12714 90 0 1 S N N 0 M A 4 Inlet connection standard Inlet connection standard
12424 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12536 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12546 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12554 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12594 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12609 93 0 1 S N N 0 M A 4 Inlet type Inlet type Line
12259 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12349 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12364 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12379 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12464 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12504 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12524 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12624 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12654 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12684 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12714 64 0 1 S Y N 0 M A 5 Inlet connection Inlet connection
12424 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12536 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12546 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12554 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12594 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12609 92 0 1 S Y N 0 M A 5 Inlet connection Inlet connection Line
12259 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12349 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12364 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12379 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12424 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12464 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12504 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12524 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12536 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12546 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12554 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12594 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12609 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12624 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12654 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12684 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12714 91 0 1 S N N 0 M A 6 Outlet type Outlet type
12259 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12349 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12364 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12379 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12424 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12464 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12504 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12524 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12536 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12546 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12554 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12594 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12609 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12624 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12654 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12684 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12714 65 0 1 S Y N 0 M A 7 Outlet connection Outlet connection
12259 66 0 1 S N N 0 M A 8 Purge Purge
12349 66 0 1 S N N 0 M A 8 Purge Purge
12364 66 0 1 S N N 0 M A 8 Purge Purge
12379 66 0 1 S N N 0 M A 8 Purge Purge
12424 66 0 1 S N N 0 M A 8 Purge Purge
12464 66 0 1 S N N 0 M A 8 Purge Purge
12504 66 0 1 S N N 0 M A 8 Purge Purge
12524 66 0 1 S N N 0 M A 8 Purge Purge
12536 66 0 1 S N N 0 M A 8 Purge Purge
12546 66 0 1 S N N 0 M A 8 Purge Purge
12554 66 0 1 S N N 0 M A 8 Purge Purge
12594 66 0 1 S N N 0 M A 8 Purge Purge
12609 66 0 1 S N N 0 M A 8 Purge Purge
12624 66 0 1 S N N 0 M A 8 Purge Purge
12654 66 0 1 S N N 0 M A 8 Purge Purge
12684 66 0 1 S N N 0 M A 8 Purge Purge
12714 66 0 1 S N N 0 M A 8 Purge Purge
12259 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12364 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12379 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12424 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12464 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12504 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12524 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12536 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12546 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12554 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12594 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12609 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12624 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12654 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12684 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12714 67 0 1 S N N 0 M A 9 Shut off valve Shut off valve
12259 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12349 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12364 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12379 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12424 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12464 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12504 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12524 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12536 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12546 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12554 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12594 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12609 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12624 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12654 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12684 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12714 84 0 1 S N N 0 M A 10 Type of inlet gauge Type of inlet gauge
12259 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12349 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12364 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12379 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12424 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12464 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12504 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12524 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12536 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12546 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12554 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12594 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12609 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12624 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12654 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12684 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge
12714 85 0 1 S N N 0 M A 11 Type of outlet gauge Type of outlet gauge