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 (
    23838, 23831, 23839, 23832, 23840, 23833, 
    23841, 23834, 23842, 21580, 21581, 
    21582, 21140, 21141, 21142, 21143, 
    21535, 21145, 21146, 21147, 21149, 
    21150, 21151, 21152
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'uk' 
  AND (
    cscart_seo_names.company_id = 1 
    OR cscart_seo_names.company_id = 0
  )

Query time 0.00130

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "210",
          "used_key_parts": [
            "object_id",
            "type",
            "dispatch",
            "lang_code",
            "company_id"
          ],
          "rows": 48,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (23838,23831,23839,23832,23840,23833,23841,23834,23842,21580,21581,21582,21140,21141,21142,21143,21535,21145,21146,21147,21149,21150,21151,21152) and cscart_seo_names.`type` = 'p' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'uk' and (cscart_seo_names.company_id = 1 or cscart_seo_names.company_id = 0)"
        }
      }
    ]
  }
}

Result

product_id seo_name seo_path
21140 gel-lak-edlen-color-001-biliy-9-ml-uk-2 387/941/1016
21141 gel-lak-edlen-color-002-chorniy-9-ml-uk 387/941/1016
21142 gel-lak-edlen-color-003-molochniy-9-ml-uk 387/941/1016
21143 gel-lak-edlen-color-004-rozheviy-nyud-9-ml-uk 387/941/1016
21145 gel-lak-edlen-color-007-nizhno-rozheviy-z-mikrobliskom-9-ml-uk 387/941/1016
21146 gel-lak-edlen-color-008-svitliy-polunichno-rozheviy-z-mikrobliskom-9-ml-uk 387/941/1016
21147 gel-lak-edlen-color-009-rozheviy-z-mikrobliskom-9-ml-uk 387/941/1016
21149 gel-lak-edlen-color-011-rozheviy-barbi-9-ml-uk 387/941/1016
21150 gel-lak-edlen-color-012-yagidniy-rozheviy-9-ml-uk 387/941/1016
21151 gel-lak-edlen-color-013-koralovo-rozheviy-9-ml-uk 387/941/1016
21152 gel-lak-edlen-color-014-koralovo-chervoniy-9-ml-uk 387/941/1016
21535 gel-lak-edlen-color-006-rozheviy-9-ml-uk 387/941/1016
21580 gel-zhele-edlen-jam-gel-01-30-ml-uk 484/960
21581 gel-zhele-edlen-jam-gel-02-30-ml-uk 484/960
21582 gel-zhele-edlen-jam-gel-03-30-ml-uk 484/960
23831 gel-dlya-nigtiv-refill-edlen-builder-gel-04-15-ml-uk 484/960
23832 gel-dlya-nigtiv-refill-edlen-builder-gel-05-15-ml-uk 484/960
23833 gel-dlya-nigtiv-refill-edlen-builder-gel-06-15-ml-uk 484/960
23834 gel-dlya-nigtiv-refill-edlen-builder-gel-07-15-ml-uk 484/960
23838 gel-dlya-nigtiv-refill-edlen-builder-gel-03-30-ml-uk 484/960
23839 gel-dlya-nigtiv-refill-edlen-builder-gel-04-30-ml-uk 484/960
23840 gel-dlya-nigtiv-refill-edlen-builder-gel-05-30-ml-uk 484/960
23841 gel-dlya-nigtiv-refill-edlen-builder-gel-06-30-ml-uk 484/960
23842 gel-dlya-nigtiv-refill-edlen-builder-gel-07-30-ml-uk 484/960