SELECT 
  cscart_product_descriptions.product_id, 
  cscart_product_descriptions.short_description, 
  IF(
    cscart_product_descriptions.short_description = '' 
    OR cscart_product_descriptions.short_description IS NULL, 
    cscart_product_descriptions.full_description, 
    ''
  ) AS full_description, 
  cscart_product_descriptions.unit_name 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (5284, 4475, 4285, 4412, 4292) 
  AND cscart_product_descriptions.lang_code = 'en'

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.55"
    },
    "table": {
      "table_name": "cscart_product_descriptions",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "product_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "lang_code"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 5,
      "rows_produced_per_join": 5,
      "filtered": "100.00",
      "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_descriptions`.`product_id` in (5284,4475,4285,4412,4292)) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "3.05",
        "eval_cost": "0.50",
        "prefix_cost": "3.55",
        "data_read_per_join": "22K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description",
        "unit_name"
      ]
    }
  }
}

Result

product_id short_description full_description unit_name
4285 <p>The Logitech Zone Vibe 100 delivers immersive sound and modern comfort in a lightweight over-ear design. With Bluetooth wireless connectivity and up to 20 hours of battery life, it’s perfect for work calls, music, and everyday use. Its stylish look, clear microphone, and versatile features make it a great headset for both professional and personal use.</p>
4292 <p>The <strong>Logitech G Pro X Wired Gaming Headset</strong> offers professional grade audio in a comfortable over-ear design, perfect for long gaming sessions. With wired connectivity and a detachable USB sound card, it delivers precise, immersive sound without the need for charging. Durable and performance focused, it’s ideal for gamers seeking clear communication and high quality in game audio.</p>
4412 <p>The Logitech G733 LIGHTSPEED Wireless Gaming Headset delivers immersive sound and vibrant style in a lightweight over-ear design. With ultra low latency wireless connectivity and up to 29 hours of battery life, it ensures uninterrupted gaming sessions. Comfortable and durable, it’s ideal for gamers seeking superior audio, customizable RGB lighting, and a wireless experience without compromise.</p>
4475 <p>The Logitech G PRO X 2 LIGHTSPEED Wireless Gaming Headset combines professional-grade audio with wireless freedom in a comfortable over-ear design. Its LIGHTSPEED connection ensures ultra low latency for precise gaming sound, while the long lasting rechargeable battery provides up to 29 hours of uninterrupted play. Durable, stylish, and performance focused, it’s designed for gamers seeking top tier audio and comfort.</p>
5284 <p>Nescafé Dolce Gusto Starbucks Latte Macchiato Coffee Capsules offer a rich, velvety and familiar layered coffee experience, inspired by Starbucks’ café-style Latte Macchiato and designed for use in your NESCAFÉ® Dolce Gusto® machine. Each box contains 6 milk capsules and 6 coffee capsules, allowing you to make six drinks. The drink is made by brewing the milk capsule first (200 ml), then following with the coffee capsule (30 ml), producing a <strong>Large (230 ml)</strong> Latte Macchiato. Ingredients include whole milk powder (90%), sugar (10%), and roasted ground coffee. With a creamy texture and a balanced flavour profile that combines the sweetness of milk with smooth espresso, it’s ideal for those who appreciate coffee-at-home with barista layers. <span class="ms-1 inline-flex max-w-full items-center relative top-[-0.094rem] animate-[show_150ms_ease-in]"><a href="https://www.starbucksathome.com/rs/proizvodi/starbucks-latte-macchiato?utm_source=chatgpt.com" target="_blank" class="flex h-4.5 overflow-hidden rounded-xl px-2 text-[9px] font-medium text-token-text-secondary! bg-[#F4F4F4]! dark:bg-[#303030]! transition-colors duration-150 ease-in-out" rel="noreferrer noopener"><span class="relative start-0 bottom-0 flex h-full w-full items-center"><span class="flex h-4 w-full items-center justify-between"><span class="max-w-[15ch] grow truncate overflow-hidden text-center"></span></span></span></a></span></p>