SELECT 
  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' 
  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 = 56 
    AND cscart_ult_objects_sharing.share_object_type = 'product_options'
  ) 
WHERE 
  a.product_id IN (
    5002, 5003, 5004, 5005, 5006, 5007, 5008, 
    5009, 5010, 5011, 5013, 5014, 5015, 
    5016, 5017, 5018, 5019, 5020, 5021, 
    5023, 5024, 5025, 5026, 5027, 5028, 
    5029, 5030
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "64.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "27.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "a",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "c_status"
            ],
            "key": "c_status",
            "used_key_parts": [
              "product_id",
              "status"
            ],
            "key_length": "6",
            "rows_examined_per_scan": 27,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "index_condition": "((`primapearl_r_new`.`a`.`product_id` in (5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5013,5014,5015,5016,5017,5018,5019,5020,5021,5023,5024,5025,5026,5027,5028,5029,5030)) and (`primapearl_r_new`.`a`.`status` = 'A'))",
            "cost_info": {
              "read_cost": "16.21",
              "eval_cost": "2.70",
              "prefix_cost": "18.91",
              "data_read_per_join": "73K"
            },
            "used_columns": [
              "option_id",
              "product_id",
              "company_id",
              "option_type",
              "inventory",
              "regexp",
              "required",
              "multiupload",
              "allowed_extensions",
              "max_file_size",
              "missing_variants_handling",
              "status",
              "position",
              "value",
              "yml2_type_options",
              "yml2_option_param",
              "external_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "ref": [
              "primapearl_r_new.a.option_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "28.36",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "(`primapearl_r_new`.`cscart_ult_objects_sharing`.`share_object_id` = `primapearl_r_new`.`a`.`option_id`)"
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "primapearl_r_new.a.option_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "37.81",
              "data_read_per_join": "91K"
            },
            "used_columns": [
              "option_id",
              "lang_code",
              "option_name",
              "option_text",
              "description",
              "comment",
              "inner_hint",
              "incorrect_message",
              "internal_option_name"
            ]
          }
        }
      ]
    }
  }
}