SELECT 
  cscart_seo_names.object_id AS product_id, 
  cscart_seo_names.name AS seo_name, 
  cscart_seo_names.path AS seo_path 
FROM 
  cscart_seo_names 
WHERE 
  cscart_seo_names.object_id IN (
    51567, 51480, 51565, 51564, 51479, 139, 
    129, 51566, 51301, 51494, 51, 50, 51497, 
    51498, 51495, 51563, 53, 22713, 21, 
    22714, 22712, 46, 22715, 22716, 51496, 
    21567, 91, 50989, 105, 48, 49, 92
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'ru' 
  AND (
    cscart_seo_names.company_id = 1 
    OR cscart_seo_names.company_id = 0
  )

Query time 0.00120

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "44.81"
    },
    "table": {
      "table_name": "cscart_seo_names",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "dispatch"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "object_id",
        "type",
        "dispatch",
        "lang_code",
        "company_id"
      ],
      "key_length": "210",
      "rows_examined_per_scan": 64,
      "rows_produced_per_join": 64,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_seo_names`.`object_id` in (51567,51480,51565,51564,51479,139,129,51566,51301,51494,51,50,51497,51498,51495,51563,53,22713,21,22714,22712,46,22715,22716,51496,21567,91,50989,105,48,49,92)) and (`test_uchur_k`.`cscart_seo_names`.`type` = 'p') and (`test_uchur_k`.`cscart_seo_names`.`dispatch` = '') and (`test_uchur_k`.`cscart_seo_names`.`lang_code` = 'ru') and ((`test_uchur_k`.`cscart_seo_names`.`company_id` = 1) or (`test_uchur_k`.`cscart_seo_names`.`company_id` = 0)))",
      "cost_info": {
        "read_cost": "38.41",
        "eval_cost": "6.40",
        "prefix_cost": "44.81",
        "data_read_per_join": "108K"
      },
      "used_columns": [
        "name",
        "object_id",
        "company_id",
        "type",
        "dispatch",
        "path",
        "lang_code"
      ]
    }
  }
}

Result

product_id seo_name seo_path
21 kurtka-uchur-all-weather-jacket-pro-cv-taas 40
46 termobele-uchur-arctic-thermo-pro-cv-chernyy 40
48 kurtka-uchur-warm-lite-down-cv-saas 40
49 kurtka-uchur-warm-lite-down-cv-taas 40
50 kostyum-uchur-bulchut-3v1-cv-saas 40
51 kostyum-uchur-bulchut-3v1-cv-taas 40
53 kurtka-uchur-all-weather-jacket-pro-cv-saas 40
91 shtany-uchur-all-weather-pants-pro-cv-saas 40
92 kurtka-uchur-warm-lite-down-cv-chernyy 40
105 kepka-uchur-visor-cv-saas 40
129 tolstovka-s-kapyushonom-uchur-horizon-cv-chernyy 40
139 tolstovka-s-kapyushonom-uchur-terra-cv-chernyy 40
21567 perchatki-uchur-warmshell-cv-chernyy 5/52/29
22712 futbolka-sportivnaya-uchur-totem-animal-wolf-cv-chernyy 5/7
22713 futbolka-sportivnaya-uchur-totem-animal-black-storm-cv-chernyy 5/7
22714 futbolka-sportivnaya-uchur-totem-animal-eagle-cv-chernyy 5/7
22715 futbolka-sportivnaya-uchur-totem-animal-bear-cv-chernyy 5/7
22716 futbolka-sportivnaya-uchur-totem-animal-raven-cv-chernyy 5/7
50989 perchatki-uchur-wintersoft-cv-chernyy 5/52/29
51301 tolstovka-s-kapyushonom-uchur-ridge-cv-chernyy 40
51479 termokruzhka-uchur-terra-cv-chernyy-400ml 2/3/4
51480 termokruzhka-uchur-ethno-v2-cv-chernyy-620ml 2/3/4
51494 shopper-uchur-logo-cv-chernyy 2/204
51495 shopper-uchur-terra-cv-chernyy 40
51496 panama-uchur-safari-cv-bezhevyy 5/50/33
51497 panama-uchur-safari-cv-chernyy 5/50/33
51498 panama-uchur-safari-cv-seryy 5/50/33
51563 kalendar-uchur-halandaar-2026-god 1
51564 shtany-uteplennye-uchur-expedition-cv-chernyy 5/9
51565 kurtka-uteplennaya-uchur-expedition-cv-chernyy 40
51566 bryuki-muzhskie-uteplennye-uchur-arctic-cv-chernyy 5/9
51567 puhovaya-kurtka-uchur-cloud-cv-chernyy 5/10