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 (
    9773, 9774, 9775, 9776, 9777, 9778, 9779, 
    9780, 9781, 9782, 9783, 9784, 9785, 
    9786, 9787, 9788
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00049

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 (9773,9774,9775,9776,9777,9778,9779,9780,9781,9782,9783,9784,9785,9786,9787,9788)) 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
9773 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Color-changing light -choose from 16.7 million colors, Tunable 1200k-6500k white light ranging from a soft warm Sunset to bright white daylight</span></li> <li><span class="a-list-item">Double-sided mounting pads for no-holes, no-hassle installation of the light panels</span></li> <li><span class="a-list-item">Customize with the free Nanoleaf Smarter Series app, works with Amazon Echo, Google Home, Google Assistant, Siri, HomeKit, IFTTT</span></li> <li><span class="a-list-item">Supports up to 30 light panels in a single system</span></li> <li><span class="a-list-item"><span class="a-list-item">Includes: </span></span>4 Light Squares with offset Linker slots, 4 Linkers for connecting Light Squares and Control Square, 12 Double-sided adhesive mounting tape</li> </ul>
9774 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Color-changing light -choose from 16.7 million colors, Tunable 1200k-6500k white light ranging from a soft warm Sunset to bright white daylight</span></li> <li><span class="a-list-item">Double-sided mounting pads for no-holes, no-hassle installation of the light panels</span></li> <li><span class="a-list-item">Customize with the free Nanoleaf smarter series app, works with Amazon echo, Google home, Google assistant, Siri, home kit, IFTTT</span></li> <li><span class="a-list-item">Supports up to 30 light panels in a single system</span></li> <li><span class="a-list-item">Easily mounted onto any flat surface using mounting tape</span></li> <li>Canvas Light Squares</li> <li>Canvas Control Square</li> <li>25W Power Supply + AC Cable</li> <li>Canvas Linkers</li> <li>Double-sided Mounting Tape</li> <li><span class="a-list-item">Touch and Rhythm sensitive</span></li> </ul>
9775 <div class="para-list"> <div class="h-margin-t-tight"> <div>BELT CABLE XL 's 3 m range liberates you from the wall socket, and gives you the freedom to charge and use your device in comfort. Roll up excess cable and secure it with the integrated leather strap for a tangle-free and tidy home.</div> </div> <div class="h-margin-v-default">RELAX AND RECHARGE: The extra-long braided cable lets you get comfortable when using and charging your device. <br />THE PERFECT TRAVELING COMPANION: You'll want to take the BELT CABLE XL with you everywhere. That's why we fitted it with an integrated leather strap, so you can just wrap it up and go. <br />STYLE AND SUBSTANCE: Resistant to wear-and-tear and built to last, BELT CABLE XL has both durability and retro style that looks great in any environment.</div> <ul><li class="styles__Bullet-sc-10lpfph-17 gsBdnS">Reinforced nylon braided structure for unparalleled strength and durability</li> <li class="styles__Bullet-sc-10lpfph-17 gsBdnS">Genuine leather strap to roll up and secure your cable</li> <li class="styles__Bullet-sc-10lpfph-17 gsBdnS">3 m range lets you use and charge your device in comfort</li> <li class="styles__Bullet-sc-10lpfph-17 gsBdnS">Compatible with most USB-C devices</li> <li class="styles__Bullet-sc-10lpfph-17 gsBdnS">Cable made from durable woven nylon and fortified with DuPont Kevlar inside, so it's 6 times stronger than standard lightning cables</li> </ul></div>
9776 <ul><li><span>BELT CABLE puts an end to untidy,</span></li> <li><span> tangled-up cables at the bottom of your bag.</span></li> <li><span> The 4-foot (1.2m) braided cable is wrapped up and secured with an integrated leather belt so it's always smart, tangle-free, and stays in prime condition.</span></li> </ul>
9777 <ul><li><strong>The perfect travelling companion -</strong>You’ll want to take BELT CABLE XL with you everywhere. That’s why we fitted it with an integrated leather strap, so you can just wrap it up and go.</li> <li><strong>Relax and Re-charge -</strong>The extra-long braided cable lets you get comfortable when using and charging your device.</li> <li><strong>Style and Substance - </strong>Resistant to wear-and-tear and built to last, BELT CABLE XL has both durability and retro style that looks great in any environment.</li> </ul>
9778 <ul><li>Belt Cable Xl 3m Range Liberates You from The Wall Socket and Gives You the Freedom to Charge and Use Your Device in Comfort</li> <li>Roll up Excess Cable and Secure It with The Integrated Genuine Leather Strap for A Tangle-Free and Tidy Home</li> <li>The Extra-Long Reinforced Cable with An Integrated Genuine Leather Belt, Gives You the Freedom to Use Your Device While Charging</li> </ul>
9779 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Ultra-Strong Featuring an Ultra Strong Reinforced Structure for Unparalleled Strength and Durability with High Speed Charging up To 2 4 Amps Lightning and 3 Amps Usb C for Apple Lightning Usb C and Micro Usb Devicesâ </span></li> <li><span class="a-list-item">Extended Lifespan O Flex Strain Relief Design at Connector Joint Provides Controlled Flexibility to Absorb 2 X More Stress than Regular Strain Relief Its 10000 Plus Bend Lifespan Makes It 6x Stronger than Standard Lightning Cables</span></li> <li><span class="a-list-item">Compatible with Apple Lightning Usb C and Micro Usb Devices Integrated 3 in 1 Adaptor to Charge Both Apple Lightning and Android Devices Micro Usb and Usb C so You only Need One Cable for All Your Devices</span></li> <li><span class="a-list-item">Wrap It and Go the Genuine Leather Strap Keeps Your 6point5 Foot Cable Neat Tangle Free and In Good Condition Its Extra Range Lets You Charge and Use Your Device in Comfort</span></li> <li><span class="a-list-item">Fits Most Cases Ultra Slim Connector Works with Most Cases and Covers for Micro Usb Usb C and Apple Lightning Devices</span></li> </ul>
9780 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Perfect Fit: Precision Engineered Construction Fits Your I Phone Xs Max Perfectly and Gives Access to All Ports and Functions</span></li> <li><span class="a-list-item">Drop-Proof Protection: Advanced Shock-Absorbing Polymer Frame Dissipates Energy on Impact Providing Drop-Proof Protection for Your I Phone without The Bulk</span></li> <li><span class="a-list-item">Safeguards Your Screen: Raised Rubber Bumper Protects Glass Screen from Shattering on Impact</span></li> <li><span class="a-list-item">Genuine Italian Nappa Leather: Transform your phone into a luxurious accessory</span></li> </ul>
9781 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Perfect Fit: Precision Engineered Construction Fits Your I Phone X Perfectly and Gives Access to All Ports and Functions</span></li> <li><span class="a-list-item">Drop-Proof Protection: Advanced Shock-Absorbing Polymer Frame Dissipates Energy on Impact Providing Drop-Proof Protection for Your I Phone without The Bulk</span></li> <li><span class="a-list-item">Safeguards Your Screen: Raised Rubber Bumper Protects Glass Screen from Shattering on Impact</span></li> <li><span class="a-list-item">Genuine Italian Nappa Leather: Transform your phone into a luxurious accessory</span></li> </ul>
9782 <ul class="col-sm-6"><li>Wireless charger</li> <li>Material: steel, textile</li> <li>Rose pink color</li> <li>Versatile charging technology</li> <li>Access phone in landscape and portrait whilst it charges</li> <li>Hard-wearing textile, precision-engineered steel</li> <li>Charges through cases up to 3mm thick</li> <li>6.5ft USB-A to USB-C cable with genuine leather strap</li> </ul><p><span>Bring innovation home with this Dock wireless charger. Made from hard-wearing textile and precision-engineered steel, it is built to last & charges through cases up to 3mm thick. Blending effortlessly into your home with its minimal design, it gives you full access to your device in both landscape and portrait orientation thanks to its versatile wireless charging technology. A must-have for any tech lover.</span></p>
9783 <ul><li>Made for iPhone and Qi Compatible Devices</li> <li><span>Designed with a silicone tread, it keeps your device in place while charging and prevents overheating for optimum charging speed, up to 10W.</span></li> <li><span>Compact design with foldable pins makes it pocket-sized, perfect for travel and those tricky to reach power sockets.</span></li> <li><span>Features Smart-IC Technology to guarantee your devices are charging at their maximum speed, and sophisticated protection measures to ensure safety for you and your devices.</span></li> </ul>
9784 <ul><li>Made for iPhone and Qi Compatible Devices</li> <li><span>Designed with a silicone tread, it keeps your device in place while charging and prevents overheating for optimum charging speed, up to 10W.</span></li> <li><span>Compact design with foldable pins makes it pocket-sized, perfect for travel and those tricky to reach power sockets.</span></li> <li><span>Features Smart-IC Technology to guarantee your devices are charging at their maximum speed, and sophisticated protection measures to ensure safety for you and your devices.</span></li> </ul>
9785 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Charge Three Devices Simultaneously: Three Usb-A Ports (including One that Transforms to Usb-C) Charge up To Three Devices at Once. Compatible with I Phone, I Pad, Android Devices, Micro-Usb Devices, Smartphones, Tablets and Type-C Devices</span></li> <li><span class="a-list-item">High Speed Charging: Smart Ic Technology Auto-Detects Your Device's Input to Always Charge at Maximum Speed (up to 7.8 Amp)</span></li> <li><span class="a-list-item">Keeps Cables Neat and Easy to Access: Unrivaled Cable Management Holds up To 20 Feet of Cable that Can Be Fully Extended for Extra Range</span></li> <li><span class="a-list-item">Quick and Easy Set Up: Compatible with Most Usb Cables (up to 6.5 Feet) so You Can Use the Cables You Already Own</span></li> <li><span class="a-list-item">Rises with A Single Touch: Touch sensor and subtle light lets you find your cables in with ease and in the dark</span></li> </ul>
9786 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item"> Three USB-A ports (including one that transforms to USB-C) charge up to three devices at once. Compatible with iPhone, iPad, Android devices, Micro-USB devices, smartphones, tablets and Type-C devices</span></li> <li><span class="a-list-item"> Smart IC technology auto-detects your device's input to always charge at maximum speed (up to 7.8Amp)</span></li> <li><span class="a-list-item">Unrivaled cable management holds up to 20 feet of cable that can be fully extended for extra range</span></li> <li><span class="a-list-item"> Compatible with most USB cables (up to 6.5 feet) so you can use the cables you already own</span></li> <li><span class="a-list-item"> Touch sensor and subtle light lets you find your cables in with ease and in the dark</span></li> </ul>
9787 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Charge Three Devices Simultaneously: Three Usb-A Ports (including One that Transforms to Usb-C) Charge up To Three Devices at Once. Compatible with I Phone, I Pad, Android Devices, Micro-Usb Devices, Smartphones, Tablets and Type-C Devices</span></li> <li><span class="a-list-item">High Speed Charging: Smart Ic Technology Auto-Detects Your Device's Input to Always Charge at Maximum Speed (up to 7.8 Amp)</span></li> <li><span class="a-list-item">Keeps Cables Neat and Easy to Access: Unrivaled Cable Management Holds up To 20 Feet of Cable that Can Be Fully Extended for Extra Range</span></li> <li><span class="a-list-item">Quick and Easy Set Up: Compatible with Most Usb Cables (up to 6.5 Feet) so You Can Use the Cables You Already Own</span></li> <li><span class="a-list-item">Rises with A Single Touch: Touch sensor and subtle light lets you find your cables in with ease and in the dark</span></li> </ul>
9788 <ul><li><span class="a-list-item">Rotating grip with 8 lockable positions lets you securely hold your iPad Pro 9.7 with one hand</span></li> <li><span class="a-list-item"> Integrated, adjustable stand lets you turn your screen to portrait or landscape orientation, so you can find your optimum angle</span></li> <li><span class="a-list-item"> Slim but strong construction, with shock absorbing frame and rubber screen bumper, protects your iPad from everyday knocks without weighing it down</span></li> <li><span class="a-list-item"> Leather pencil holder safely stores your pencil when not in use, so it's there when you need it next</span></li> <li><span class="a-list-item">Designed for the original iPad Pro 9.7 (DOES NOT FIT THE 2017 IPAD PRO 10.5 or IPAD 9.7)</span></li> </ul>