SELECT 
  option_type as type, 
  option_id 
FROM 
  cscart_product_options 
  INNER JOIN cscart_ult_objects_sharing ON (
    cscart_ult_objects_sharing.share_object_id = cscart_product_options.option_id 
    AND cscart_ult_objects_sharing.share_company_id = 1 
    AND cscart_ult_objects_sharing.share_object_type = 'product_options'
  ) 
WHERE 
  option_id IN (
    22125, 23289, 23548, 23246, 23477, 23478, 
    23479, 23308, 23251, 23249, 23250, 
    23254, 23255, 23229, 23480, 23481, 
    22397
  )

Query time 0.00104

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_product_options",
      "access_type": "range",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["option_id"],
      "rows": 17,
      "filtered": 100,
      "attached_condition": "cscart_product_options.option_id in (22125,23289,23548,23246,23477,23478,23479,23308,23251,23249,23250,23254,23255,23229,23480,23481,22397)"
    },
    "table": {
      "table_name": "cscart_ult_objects_sharing",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "159",
      "used_key_parts": [
        "share_object_id",
        "share_company_id",
        "share_object_type"
      ],
      "ref": ["cscart_migrate.cscart_product_options.option_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "cscart_ult_objects_sharing.share_object_id = cscart_product_options.option_id and cscart_ult_objects_sharing.share_object_type = 'product_options'",
      "using_index": true
    }
  }
}

Result

type option_id
S 22125
S 22397
S 23229
S 23246
S 23249
S 23250
S 23251
S 23254
S 23255
S 23289
S 23308
S 23477
S 23478
S 23479
S 23480
S 23481
S 23548