SELECT 
  q_product_descriptions.product_id, 
  q_product_descriptions.short_description, 
  IF(
    q_product_descriptions.short_description = '', 
    q_product_descriptions.full_description, 
    ''
  ) AS full_description 
FROM 
  q_product_descriptions 
WHERE 
  q_product_descriptions.product_id IN (
    10482, 10486, 10487, 10490, 10491, 10492, 
    10493, 10501, 10506, 10507, 10508, 
    10509, 10510, 10511, 10512, 10513
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00052

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.41"
    },
    "table": {
      "table_name": "q_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": 16,
      "rows_produced_per_join": 16,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_product_descriptions`.`product_id` in (10482,10486,10487,10490,10491,10492,10493,10501,10506,10507,10508,10509,10510,10511,10512,10513)) and (`portal`.`q_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "35.21",
        "eval_cost": "3.20",
        "prefix_cost": "38.41",
        "data_read_per_join": "61K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
10482 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Brand : Xiaomi</span></li> <li><span class="a-list-item">Number of Charging Ports : 2</span></li> <li><span class="a-list-item">Compatible Devices : Multi</span></li> <li><span class="a-list-item">Capacity : 20000mAh & Above</span></li> <li><span class="a-list-item">Type : Wired Power Bank</span></li> </ul>
10486 <ul><li><span style="font-family:Arial, Verdana;"><span>Xiaomi Bluetooth V4.1 handsfree earphone </span></span></li> <li><span style="font-family:Arial, Verdana;"><span>Advanced CSR 8610 chipset</span></span></li> <li><span style="font-family:Arial, Verdana;"><span>6.5g ultra lightweight</span></span></li> <li><span style="font-family:Arial, Verdana;"><span>Oil resistant coating technology</span></span></li> <li><span style="font-family:Arial, Verdana;"><span>In ear style, very convenient when driving and doing sports</span></span></li> <li><span style="font-family:Arial, Verdana;"><span>One buttom control to reach, reject phone calls or dailing back</span></span></li> <li><span style="font-family:Arial, Verdana;"><span>Suitable for all Bluetooth enabled devices</span></span></li> </ul>
10487 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Microphone included : Yes</span></li> <li><span class="a-list-item">Noise Cancelling : Yes</span></li> <li><span class="a-list-item">Brand : Xiaomi</span></li> <li><span class="a-list-item">Connectivity : Wireless</span></li> <li><span class="a-list-item">Model Number : LYXQEJ01JY</span></li> </ul>
10490 <ul><li><span> Adopt silicone material, drop resistance and shockproof</span></li> <li><span>Compact size and light weight, portable and easy to carry </span></li> <li><span>Intelligent circuit cutting, avoid overcharging, protect phone battery</span></li> <li><span>Input: 9V / 1.6A DC 5V / 2A</span></li> <li><span>Output: 5V / 5W 9V / 10W</span></li> <li><span> LED indicator light shows the working state at the real time</span></li> <li><span>Compatible with iPhone XS / XR / XS MAX</span></li> </ul>
10491 <div><span>Color:White</span></div> <div><span>Input Power:5V/2A</span></div> <div><span>Output Power: 5V/1A</span></div> <div><span>Input(Max,Fast charge): 9V/2A</span></div> <div><span>Output(Max,Fast charge): 9V/1A</span></div> <div><span>Size: R=47mm,D=12.44mm</span></div> <div><span>Shell Material: PC + Silicone</span></div> <div><span>Two Charging models: 5W nomal charging and 7.5W quick charging</span></div> <div><span>Quick charging only for Xiaomi MIX 2S</span></div> <div><span>Nomal charging for all Qi Wireless Charging Standard Device</span></div>
10492 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Elegant touch - the aluminum sound chamber is anodized for a sleek finish and features an engraved CD-like pattern to prevent it from slipping. The chamfered edge feels smooth in hand and adds an elegant touch. It comes with two additional earbud sizes (S / L).</span></li> <li><span class="a-list-item">Balanced and solid sound - The diaphragm uses a combination of aerospace-grade metal and PET to enhance the music experience. Tuned and optimised across popular music genres including pop, rock, dance and more.</span></li> <li><span class="a-list-item">Enhanced sound and air flow - the 3rd generation balanced damping system separates air flow at the front of the chamber and lets sound through the back to create a mellow sound.</span></li> <li><span class="a-list-item">Fashionable and durable flat cable - designed with an inner cable wrapped in Kevlar, the cable is resistant to bends and tangles. At the same time, it has a smooth finishing, outer lined with PET.</span></li> <li><span class="a-list-item">Highly compatible - Pause, play, answer and hang up calls conveniently with a simple press of a button. Compatible with Mi phones, Android and iOS devices.</span></li> </ul>
10493 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">This is China Version only. The QR code on the cord for product authenticity is not work in US. If you concern about the authenticity, please contact the seller for the instruction.</span></li> <li><span class="a-list-item">Hybrid triple drivers technology,a richer music experience,Hi-Res Audio certificate. Dual dynamic and balanced armature units, more musical detail, 25 step to build metal sound chamber.</span></li> <li><span class="a-list-item">Durable, break-resistant TPE resilience cable,no wire bending problem.</span></li> <li><span class="a-list-item">New comfortable and anti-slip angled in-ear design,quality silicone ear buds available in size XS/S/M/L,M size on the earphone</span></li> <li><span class="a-list-item">All CNC and anodizing metal chamber and in-line controller. Volume control DO NOT support i/OS phone except Play,Answer and Switch functions</span></li> </ul>
10501 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Pocket Bluetooth Speaker</span></li> <li><span class="a-list-item">1200 mAh</span></li> <li><span class="a-list-item">5W Maximum Power</span></li> </ul>
10506 Cargador De Coche Xiaomi Mi Car Charger - 2Xusb - 2.4A Maximo 3.6A - 5V - Plata
10507 <strong>Main Features:</strong><br /><span>● Bluetooth 4.0 chip, low consumption and fast-paced</span><br /><span>● IP67 waterproof, not afraid of rainy days or any outdoor activities</span><br /><span>● 1.5 inch round glass screen, show you high-resolution images</span><br /><span>● Automatic calibration time switch time zone freely</span><br /><span>● Pedometer, built-in motion sensor, record every step of life</span>
10508 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">SIM card support : null</span></li> <li><span class="a-list-item">Model Number : A1608</span></li> <li><span class="a-list-item">Brand : null</span></li> <li><span class="a-list-item">RAM Size : null</span></li> <li><span class="a-list-item">With Camera : No</span></li> <li><span class="a-list-item">Operating System : Other</span></li> <li><span class="a-list-item">Compatible Operating Systems : Android & iOS</span></li> </ul>
10509 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Model Number : A1612</span></li> <li><span class="a-list-item">Brand : Xiaomi</span></li> <li><span class="a-list-item">External Product ID Type : EAN-13</span></li> <li><span class="a-list-item">RAM Size : 512 MB</span></li> <li><span class="a-list-item">With Camera : No</span></li> <li><span class="a-list-item">SIM card support : No</span></li> <li><span class="a-list-item">Operating System : Android</span></li> </ul>
10510 <ul class="generatedBullets"><li>Brand : Xiaomi</li> <li>Color : Grey</li> <li>RAM Size : 128</li> <li>Operating System : Other</li> <li>SIM card support : no</li> <li>With Camera : No</li> <li>Band Material : Leather</li> <li>Compatible Operating Systems : Android & iOS</li> <li>Model Number : SYB01</li> </ul>
10511 <ul><li>The dial is always bright without black screen. Uses reflective display technology, the dial brightness will auto adjust according to the environment, gives you better and more clear eye experience.</li> <li>Built-in PPG heart rate sensor, monitor your real-time heart rate in sports, make your exercise more scientific and effective.</li> <li>When a call or a message is coming, the watch will remind you via vibration, never miss any important call or message.</li> <li>Push instant information, such as Facebook, Wechat, WhatsApp, let you real-time receive information.</li> <li>160mAh battery capacity provides up to 15 days standby time.</li> </ul>
10512 <p class="jsx-1889249662 sectionHeading"><strong>Features:</strong></p> <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Made of quality silicon material, environmentally friendly and healthy</li> <li class="jsx-1889249662">Soft and tough, comfortable to wear,easy to install and remove</li> <li class="jsx-1889249662">Automatically track how long and how well you sleep and wake with a silent vibrating alarm</li> </ul><p><strong>Specifications:</strong></p> <ul><li>Color: Red</li> <li>Display Type: OLED</li> <li>Battery Type: Lithium Ion</li> <li>Brand Compatiability: Xiaomi</li> </ul>
10513 <p>Featutres:</p> <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Perfectly suitable for keeping track of your fitness activity</li> <li class="jsx-1889249662">Unlocks phone without password, sends out call/APP message reminder, displays time and acts as an alarm clock</li> <li class="jsx-1889249662">Features an ADI ultra low-power acceleration sensor + photoelectric heart rate sensor for efficient tracking</li> <li class="jsx-1889249662">Can be worn while diving or simply enjoying a walk in the rains.</li> </ul><p> </p>