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 (
    51076, 51073, 51072, 51074, 51075, 22711, 
    22710, 51077, 51080, 51078, 51079, 
    51139, 51138, 51137, 51136, 51135, 
    40, 51144, 51143, 51142, 51141, 51140, 
    39, 51205, 51204, 51203, 51202, 125, 
    27, 22, 17, 18, 106, 58, 57, 5, 51349, 
    122, 65
  ) 
  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.00077

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "54.61"
    },
    "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": 78,
      "rows_produced_per_join": 78,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_seo_names`.`object_id` in (51076,51073,51072,51074,51075,22711,22710,51077,51080,51078,51079,51139,51138,51137,51136,51135,40,51144,51143,51142,51141,51140,39,51205,51204,51203,51202,125,27,22,17,18,106,58,57,5,51349,122,65)) 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": "46.81",
        "eval_cost": "7.80",
        "prefix_cost": "54.61",
        "data_read_per_join": "132K"
      },
      "used_columns": [
        "name",
        "object_id",
        "company_id",
        "type",
        "dispatch",
        "path",
        "lang_code"
      ]
    }
  }
}

Result

product_id seo_name seo_path
5 kepka-uchur-round-patch-cv-chernyy-bez-setki 40
17 kepka-uchur-low-cap-cv-saas 40
18 kepka-uchur-low-cap-cv-taas 40
22 kepka-uchur-logo-mesh-cap-cv-black 40
27 kepka-uchur-logo-cap-cv-black 40
39 kurtka-uchur-softshell-jacket-cv-olive 40
40 kurtka-uchur-softshell-jacket-cv-saas 40
57 kepka-uchur-street-cv-saas 40
58 kepka-uchur-street-cv-taas 40
65 zhilet-steganyy-bulchut-tk-nylon-taslan-dobby-cv-chernyy 5/25
106 kepka-uchur-visor-cv-taas 40
122 kepka-uchur-round-patch-logo-grey-cv-chernyy-bez-setki 40
125 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt 40
22710 trusy-uchur-flex-cv-chernyy-ru 5/18
22711 termoshtany-uchur-active-lite-cv-chernyy 5/18
51072 termoshtany-uchur-active-lite-cv-chernyy-ru 5/18
51073 termoshtany-uchur-active-lite-cv-chernyy-ru-2 5/18
51074 termoshtany-uchur-active-lite-cv-chernyy-ru-3 5/18
51075 termoshtany-uchur-active-lite-cv-chernyy-ru-4 5/18
51076 termoshtany-uchur-active-lite-cv-chernyy-ru-5 5/18
51077 trusy-uchur-flex-cv-chernyy 5/18
51078 trusy-uchur-flex-cv-chernyy-ru-2 5/18
51079 trusy-uchur-flex-cv-chernyy-ru-3 5/18
51080 trusy-uchur-flex-cv-chernyy-ru-4 5/18
51135 kurtka-uchur-softshell-jacket-cv-saas-ru 40
51136 kurtka-uchur-softshell-jacket-cv-saas-ru-2 40
51137 kurtka-uchur-softshell-jacket-cv-saas-ru-3 40
51138 kurtka-uchur-softshell-jacket-cv-saas-ru-4 40
51139 kurtka-uchur-softshell-jacket-cv-saas-ru-5 40
51140 kurtka-uchur-softshell-jacket-cv-olive-ru 40
51141 kurtka-uchur-softshell-jacket-cv-olive-ru-2 40
51142 kurtka-uchur-softshell-jacket-cv-olive-ru-3 40
51143 kurtka-uchur-softshell-jacket-cv-olive-ru-4 40
51144 kurtka-uchur-softshell-jacket-cv-olive-ru-5 40
51202 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt-ru 40
51203 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt-ru-2 40
51204 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt-ru-3 40
51205 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt-ru-4 40
51349 kepka-uchur-round-patch-logo-grey-cv-chernyy-bez-setki-ru 40