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 (
    10499, 10500, 10501, 10502, 10503, 10504, 
    10505, 10506, 10507, 10508, 10509, 
    10510, 10511, 10512, 10513, 10514
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00068

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 (10499,10500,10501,10502,10503,10504,10505,10506,10507,10508,10509,10510,10511,10512,10513,10514)) 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
10499 <span>Name: Battery Charger for Xiaomi Mijia Scooter M365</span><br /><span>Model: Ht-A09-71 W</span><br /><span>Output: 42 V~1.7 A</span><br /><span>Input: 100-240 v 50/60 Hz 2.0 a Max</span><br /><span>Non-Rechargeable Environment: < -20°c or >40°c</span><br /><span>Turn Lamp Current: 100-200 Ma</span><br /><span>Cable Length: Approx.1.5 M</span>
10500 <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">Type : Smoke & Gas Detector</span></li> <li><span class="a-list-item">You house will be safer with this smoke detector</span></li> <li><span class="a-list-item">High quality and exquisite craftsmanship</span></li> <li><span class="a-list-item">Creatively designed for user-friendliness</span></li> <li><span class="a-list-item">Classic material adopted for extended use</span></li> <li><span class="a-list-item">Regular self-test reminder</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>
10502 <span>● Using eco-friendly plastic material, safe and durable</span><br /><span>● With 1086 accessories, you can make anything you can imagine</span><br /><span>● Smart APP control, not only easy to use but also full of fun</span><br /><span>● Modular graphics programming, easy to learn</span>
10503 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">Revolutionary 3-in-1 design allows you to build a robot, plane, or even a dinosaur. Build your own MITU robot creation with 978 pieces</span></li> <li><span class="a-list-item">978 pieces brings your creation to life, the self-balancing system keeps the robot upright even in difficult terrain and situations</span></li> <li><span class="a-list-item">Beginners and experts can easily control, program, and even plan a route for your creation on your Android or iOS device</span></li> <li><span class="a-list-item">MITU robot is a award-winning robot builder for ages 10 and up. Mi robot builder has been awarded the Academic's choice and Tillywig award for its educational applications</span></li> <li><span class="a-list-item"> High quality, environmental non-toxic materials. Mi robot passes all US and EU regulations. 1-Year Limited Warranty with considerate customer service</span></li> </ul>
10504 <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">Toy Category : Trains & Accessories</span></li> <li><span class="a-list-item">Targeted Group : Unisex</span></li> <li><span class="a-list-item">Age : 3 Years & Above</span></li> <li><span class="a-list-item">Manufacturer Recommended Age : 3 Years & Above</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>
10505 <p>he Xiaomi Mitu Building Block Mining Truck is composed of more than 500 pieces made with tight tolerances, all in order to ensure a precise and comfortable coupling between them. The pieces are made of high-quality plastic materials, very resistant, non-toxic and insulating, so much so that the Mitu Building Block Mining Truck has passed the very strict safety test reserved in China to toys: the product is therefore suitable even for the little ones.</p> <div class="code-block code-block-2"> </div>
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>
10514 <div><strong>Main Features:</strong><span> </span></div> <div> </div> <div><span>- Bluetooth 4.0 chip, low consumption and fast-paced </span></div> <div><span>- 3ATM Waterproof, Not Afraid of Rainy Days or Any Outdoor Activities </span></div> <div><span>- 1.5 Inch Round Glass Screen, Show You High-Resolution Images </span></div> <div><span>- Automatic Calibration Time Switch Time Zone Freely </span></div> <div><span>- Pedometer, Built-In Motion Sensor, Record Every Step of Life</span></div>