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 (
    29252, 29290, 29292, 29321, 29344, 29351, 
    29352, 29385, 29387, 29388, 29391, 
    29394, 29682, 29685, 29687, 29692, 
    29704, 29707, 29709, 29712, 29718, 
    29732, 29733, 29735, 29736, 29737, 
    29747, 29748, 29754, 29766
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00084

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "72.01"
    },
    "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": 30,
      "rows_produced_per_join": 30,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_product_descriptions`.`product_id` in (29252,29290,29292,29321,29344,29351,29352,29385,29387,29388,29391,29394,29682,29685,29687,29692,29704,29707,29709,29712,29718,29732,29733,29735,29736,29737,29747,29748,29754,29766)) and (`portal`.`q_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "66.01",
        "eval_cost": "6.00",
        "prefix_cost": "72.01",
        "data_read_per_join": "114K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
29252 <ul class="generatedBullets"><li>Accessory Type : Cases & Covers</li> <li>Screen Size : 9.7 Inch</li> <li>Color Family : Multi Color</li> <li>Brand : DUX DUCIS</li> <li>Compatible with : Apple iPad</li> </ul>
29290 <p>Black Pu Leather Case Smart Cover for Amazon Kindle Paperwhite Auto Sleep/wake</p>
29292 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Brand : ESR</span></li> <li><span class="a-list-item">Color : Black</span></li> <li><span class="a-list-item">Screen Size : 11 inch</span></li> <li><span class="a-list-item">Compatible with : Apple iPad Pro 11</span></li> <li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Multi Color</span></li> <li><span class="a-list-item">Are batteries needed to power the product or is this product a battery : No</span></li> <li><span class="a-list-item">Is this a Dangerous Good or a Hazardous Material, Substance or Waste that is regulated for transportation, storage, and/or disposal? : No</span></li> </ul>
29321 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Blue</span></li> <li><span class="a-list-item">Screen Size : 10.5 Inch</span></li> <li><span class="a-list-item">Brand : ESR</span></li> <li><span class="a-list-item">Compatible with : Apple iPad Pro 10.5 Inch</span></li> </ul>
29344 <p>Smart Magnetic Wake/sleep Pu Leather Case Cover for Amazon Kindle Paperwhite 6 Inch Black</p>
29351 <p>For Samsung Galaxy T580 T585 10.1 Inch Case Flip Colorful Butterfly Embossed Pattern Back Cases</p>
29352 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Color : Pink</span></li> <li><span class="a-list-item">Screen Size : 9.7 Inch</span></li> <li><span class="a-list-item">Compatible with : Apple iPad Pro 9.7</span></li> <li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Pink</span></li> </ul>
29385 <p>360 Degree Rotating Cover Case Samsung Galaxy Tab S 10.5 T800 / T805 - Red</p>
29387 <p><br />2) Made by high quality TPU/ PC material.<br />3) Soft Case Cover gives your iPad a safe protection.<br />4) Easy, snap on/off installation.<br />5) Precision cut out for your buttons, ports, camera and flash.<br />7) Precise cut-outs enables it full access to all ports.<br />8) Soft TPU material, matte line design and slim case deliver comfortable touch feeling.<br />9) All ports , features and sensitivity are accessible with case on.</p><p><br /></p><p><br /></p>
29388 <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Protects the device from dust, scratches and impact</li><li class="jsx-1889249662">Doubles as a stand when folded, allowing you to enjoy movies and videos in landscape mode</li><li class="jsx-1889249662">Precisely measured cut-outs allow easy access to all ports and buttons</li></ul>
29391 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Multi Color</span></li> <li><span class="a-list-item">Screen Size : 9.7 Inch</span></li> <li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Compatible with : Apple iPad 2017 9.7"</span></li> </ul>
29394 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Mobile Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Compatible Devices Model : Apple iPhone X</span></li> <li><span class="a-list-item">Color Family : Black</span></li> <li><span class="a-list-item">Brand : SPARK</span></li> <li><span class="a-list-item">Compatible with : Apple</span></li> <li><span class="a-list-item">Color : Clear & Black</span></li><li><span class="a-list-item">A unique combination of magnet, aluminium with 9H tempered 99.9 percent crystal clear glass which is very precisely engineered, it's a result of innovation which combines the best features such as quick install and edge to edge protection </span></li> <li><span class="a-list-item">Front and back panel are guarded with 9H tempered glass which is scratch and crack resistant with 99.9 percent crystal clear transparent to show off your phone beauty to the max</span></li> <li><span class="a-list-item">Easily insert a picture or pattern to personalise, options are endless with crystal clear glass case</span></li> </ul><div class="a-row a-expander-container a-expander-inline-container"><div class="a-expander-content a-expander-extend-content a-expander-content-expanded"></div> </div>
29682 <div>Easy to put on and easy to take off.</div> <div>Durable and washable.</div> <div>Protect your equipment from dust, scratching and shock.</div> <div>Protect your valuable investment from scratch and damage. </div> <div> </div> <div>Product Package:</div> <div>Protective Case x 1</div>
29685 <div>Product Description:</div> <div>*Durable and washable.</div> <div>*Perfectly fits the device.</div> <div>*Made of PU leather Material.</div> <div>*Protect your from dust, scratching and shock.</div> <div>*Fashion design, easy to put on and easy to take off.</div> <div> </div> <div>Parcel include:</div> <div>1*cover case</div>
29687 <div>Product Description:</div> <div>. Applied Device:For iPad 2017/iPad air/ air2 </div> <div>. Stylish, Compact, and fashion elegant and thin flip design give you excellent experience;</div> <div>. Allows easy access to all buttons, controls&ports without having to remove the case;</div> <div>. Protect your  tablet equipment from Scratches, Dusts,Collisions and Abrasion.</div> <div> </div> <div>Package Content </div> <div>1pcs Leather Case</div> <div> </div>
29692 <span>Product Description: .PU leather front cover + PC hard shell back cover .Stylish and Durable, Easy to install and remove. .offers two different viewing angles:Viewing Angle and Typing Angle. . Drop resistance + shock-proof +Scratch-resistant, full cover protection. .easy access to all buttons, ports. Suitable models: For lenovo tab e7 tb-7104f case Package include: 1 leather case</span>
29704 <div>Built-in Apple Pencil Holder </div> <div>Holds the pencil in place tightly to avoid losing; Two holes behind the holder allow you to push your pencil out easily</div> <div> </div> <div>Magnetic Closure  </div> <div>Performs the auto sleep/wake function flawlessly for power reduction; Please open "Auto-Lock" setting before using</div> <div> </div> <div>Tri-fold Stand </div> <div>Keeps flip capability to transform it into a viewing stand and on-screen stand for FaceTime, reading, watching video, typing and drawing(NOT for portrait mode)</div> <div> </div> <div>Precise Cutout </div> <div>Designed specially for iPad 9.7 released in 2018(A1893/A1954),access to all buttons and ports aligned perfectly, including camera, speakers, lightning port, earphone jack, microphone</div> <div> </div> <div>Sturdy yet Portable  </div> <div>Lightweight enough to carry on the go, soft TPU material like rubber acts as an armor to protect your beloved device fully, not slippery or stick</div>
29707 <div>Description:  </div> <div>Premium composition leather exterior and soft interior offer great protection against daily use; </div> <div>Multiple slots able to set up multiple horizontal stand angles</div> <div>Support auto Sleep/Wake function; Full access to all features (Cameras, Speaker, Ports and Buttons)</div> <div>Built-in stylus pen holder</div> <div> </div>
29709 <p>Magic Cube Kindle Paperwhite 1/2/3 Case 6'' Ereader Leather Case For Kindle Paperwhite Cover </p>
29712 <div>Product Description:</div> <div>.Shockproof Impact Rugged Hybrid Protective Case</div> <div>.with Belt Clip Holster Armor Case</div> <div>.Feature: Hard Kickstand Cover + Inside Rubber Soft Case + Belt Clip Holster</div> <div>.Material: Plastic PC + Silicone TPU</div> <div>.Protec your Phone from Scratches Bumps & Shock</div> <div>.Compatible with:</div> <div>Samsung Galaxy TAB A T580N/T585N</div> <div> </div> <div>Package List: </div> <div>1 x Case</div> <div> </div>
29718 <div class="a-section a-spacing-extra-large"> <div class="feature"> <div class="a-row feature"> <div class="a-section a-spacing-small"> <p>Product Description: -Automatically wakes or puts your device to sleep when the lid is opened or closed -Folding front cover -Easily converts into typing and landscape modes -Perfect for video-chatting and movie-watching -Transparent Back Case adds minimal bulk while protecting your precious device -No bezels around the screen allowing for unobstructed gesture swipes -Made with premium PU leather and no-scratch microfiber interior -Ultra slim,lightweight,easy access to all ports and controls -Specifically made for Samsung Galaxy Tab S3 9.7 Package include: 1 x case</p> </div> </div> </div> </div> <div class="feature"> </div> <div> </div> <div> </div> <div class="celwidget"> <div> </div> <div> <div class="celwidget"> <div class="askInlineWidget"> </div> </div> </div> </div>
29732 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Multi Color</span></li> <li><span class="a-list-item">Screen Size : 10.5 Inch</span></li> <li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Compatible with : Apple iPad Pro 10.5" 2017</span></li> </ul>
29733 <span>Easy to put on and easy to take off. Durable and washable. Protect your equipment from dust, scratching and shock. Protect your valuable investment from scratch and damage.</span>
29735 <div>Easy to put on and easy to take off.</div> <div>Durable and washable.</div> <div>Protect your equipment from dust, scratching and shock.</div> <div>Protect your valuable investment from scratch and damage.</div>
29736 <span>Product Description: 。Intelligent sleep function Wii be faster and more convenient 。Material: Artificial Leather 。Comfortable, Compact and stylish design. 。Open-face design and magnetic closure. 。Top adjustable tab design will hold your tablet well, tabs are metal material available. 。For pushing to make it hold your tablet tighter or loosen as you want. 。Multi Angle for view and folio stand design. 。Lightweight, compact, easy to carry and handle. 。Compatible For NEW Apple ipad 9.7Inch 2017 Tablet Package Content: 1 * Leather Case Cover For NEW Apple ipad 9.7Inch 2017 Tablet</span>
29737 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Screen Size : 10.8 Inch</span></li> <li><span class="a-list-item">Color Family : Blue</span></li> <li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Compatible with : Huawei MediaPad</span></li> </ul>
29747 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Color Family : Black</span></li> <li><span class="a-list-item">Screen Size : 10.5 Inch</span></li> <li><span class="a-list-item">Brand : Ineix</span></li> <li><span class="a-list-item">Compatible with : Apple iPad Pro</span></li> </ul>
29748 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Manufacturer Number : SKQ2159</span></li> <li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Screen Size : 9.7 Inch</span></li> <li><span class="a-list-item">Color Family : Black</span></li> <li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Compatible with : Apple iPad</span></li> </ul>
29754 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Accessory Type : Cases & Covers</span></li> <li><span class="a-list-item">Screen Size : 10 Inch</span></li> <li><span class="a-list-item">Color Family : Multi Color</span></li> <li><span class="a-list-item">Brand : Other</span></li> <li><span class="a-list-item">Compatible with : Huawei MediaPad</span></li> <li><span class="a-list-item">Color : Multi Color</span></li> </ul>
29766 <span>Product Description: . Applied Device:For iPad 2017/iPad air/ air2 . Stylish, Compact, and fashion elegant and thin flip design give you excellent experience; . Allows easy access to all buttons, controls&ports without having to remove the case; . Protect your tablet equipment from Scratches, Dusts,Collisions and Abrasion. Package Content 1pcs Leather Case</span>