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 (
    312048, 12712, 391035, 21914, 391033, 
    391036, 391034, 154, 161, 165, 166, 
    163, 155, 460948, 184, 183, 145, 12710, 
    12698, 157, 461039, 461275, 391040, 
    461037
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'en'

Query time 0.00045

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.04756928,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "loops": 1,
          "rows": 24,
          "cost": 0.04756928,
          "filtered": 100,
          "attached_condition": "cscart_seo_names.object_id in (312048,12712,391035,21914,391033,391036,391034,154,161,165,166,163,155,460948,184,183,145,12710,12698,157,461039,461275,391040,461037) and cscart_seo_names.`type` = 'p' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

product_id seo_name seo_path
145 sansa-fuze-mp3-player-red-4gb 166/177/179
154 jr900-wireless-headphones 166/177/181
155 porta-pro-ktc-on-ear-headphone 166/177/181
157 studio-monitor-headphones 166/177/181
161 mv800-16-1-megapixel-multiview-compact-digital-camera 166/196/198
163 nx200-20-3-megapixel-compact-system-camera 166/196/198
165 nikon-1-j1-one-lens-kit-white 166/196/198
166 nikon-1-j1-two-lens-wide-angle-kit-red 166/196/198
183 samsung-50-200mm-nx-telephoto-ois-lens 166/196/200
184 samsung-30mm-nx-pancake-lens 166/196/200
12698 sports-watch 166
12710 smart-plug 166
12712 headphones 166
21914 bulk-product-10000 166
312048 hd-webcam 166
391033 iphone-16-128-gb-5g-mobile-phone-with-camera-control-a18-chip-and-a-big-boost-in-battery-life-works-with-airpods-ultramarine 166
391034 iphone-16e-128-gb-built-for-apple-intelligence-a18-chip-supersized-battery-life-48mp-fusion-camera-15-40-cm-6-1-super-retina-xdr-display-white 166
391035 iphone-16-128-gb-5g-mobile-phone-with-camera-control-a18-chip-and-a-big-boost-in-battery-life-works-with-airpods-black 166
391036 iphone-16e-128-gb-built-for-apple-intelligence-a18-chip-supersized-battery-life-48mp-fusion-camera-15-40-cm-6-1-super-retina-xdr-display-black 166
391040 tvs-racing-titan-series-full-face-helmet-for-men-premium-bike-helmets-with-abs-shell-uv-paint-quick-release-system-aerodynamic-design-dot-and-isi-certified 166/479
460948 18-55mm-portrait-lens-clone 166/196/200
461037 tx 166/177/182
461039 tds-18 166/177/182
461275 test-defect-746 166/174/193