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 = 'ru' 
  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 
  a.product_id IN (
    8338, 8339, 8346, 8341, 8462, 8334, 8335, 
    8355, 8342, 8340, 8360, 8064, 8473, 
    8332, 8267, 8318, 8336, 8337, 8243, 
    8257, 8381, 8315, 8265, 8313, 8063, 
    8358, 8127
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position

Query time 0.00037

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 (8338,8339,8346,8341,8462,8334,8335,8355,8342,8340,8360,8064,8473,8332,8267,8318,8336,8337,8243,8257,8381,8315,8265,8313,8063,8358,8127)) 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"
            ]
          }
        }
      ]
    }
  }
}