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 (
    5885, 5886, 5887, 7241, 6743, 1764, 1765, 
    1767, 1763, 3550, 5064, 1672, 1667, 
    1769, 1666, 1669, 4063, 1671, 2986, 
    7213, 7211, 7212, 1513, 1516
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'de' 
  AND (
    1 
    OR cscart_seo_names.company_id = 0
  )

Query time 0.00067

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.26"
    },
    "table": {
      "table_name": "cscart_seo_names",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "dispatch"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "object_id",
        "type",
        "dispatch",
        "lang_code"
      ],
      "key_length": "206",
      "rows_examined_per_scan": 25,
      "rows_produced_per_join": 25,
      "filtered": "100.00",
      "index_condition": "((`dbggbern`.`cscart_seo_names`.`object_id` in (5885,5886,5887,7241,6743,1764,1765,1767,1763,3550,5064,1672,1667,1769,1666,1669,4063,1671,2986,7213,7211,7212,1513,1516)) and (`dbggbern`.`cscart_seo_names`.`type` = 'p') and (`dbggbern`.`cscart_seo_names`.`dispatch` = '') and (`dbggbern`.`cscart_seo_names`.`lang_code` = 'de'))",
      "cost_info": {
        "read_cost": "14.76",
        "eval_cost": "2.50",
        "prefix_cost": "17.26",
        "data_read_per_join": "42K"
      },
      "used_columns": [
        "name",
        "object_id",
        "company_id",
        "type",
        "dispatch",
        "path",
        "lang_code"
      ]
    }
  }
}

Result

product_id seo_name seo_path
1513 ultimate-guard-arkhive-400-xenoskin-monocolor-blau 7/9
1516 ultimate-guard-arkhive-400-xenoskin-monocolor-grau 7
1666 ultimate-guard-160-twin-flip-n-tray-petrol 7
1667 ultimate-guard-160-twin-flip-n-tray-petrol-clone 7
1669 ultimate-guard-160-twin-flip-n-tray-red-monocolored 7
1671 ultimate-guard-160-twin-flip-n-tray-pink-clone 7
1672 ultimate-guard-160-twin-flip-n-tray-white-clone 7
1763 superhive-monocolor-rot 7/9
1764 superhive-550-monocolor-blau 7/9
1765 superhive-550-monocolor-grau 7/9
1767 superhive-550-monocolor-petrol 7/9
1769 ultimate-guard-160-twin-flip-n-tray-grey 7/22/24
2986 ultimate-guard-160-xenoskin-twin-flipntray-mono-black 7
3550 triple-deck-holder-300-xl-black 7/22/67
4063 ultimate-guard-160-twin-flip-n-tray-violett 7/22/24
5064 ultimate-guard-return-to-earth-boulder-100-limited-artist-edition-2-mario-renaud-the-search 7
5885 squaroes-squaroe-teenage-mutant-ninja-turtles-005-michelangelo 7
5886 squaroes-squaroe-teenage-mutant-ninja-turtles-006-leonardo 7
5887 squaroes-squaroe-teenage-mutant-ninja-turtles-008-shredder 7
6743 squaroes-squaroe-spongebob-squarepants-sb015-internet-sensation 7
7211 ultimate-guard-2025-exclusive-sidewinder-100-coral-places-kelp-forest 7/22/24
7212 ultimate-guard-2025-exclusive-sidewinder-100-coral-places-mellow-sea 7/22/24
7213 ultimate-guard-2025-exclusive-sidewinder-100-coral-places-fiery-reef 7/22/24
7241 squaroes-squaroe-magic-the-gathering-edge-of-eternities-mtg005 7