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 (
    13593, 13601, 14240, 14241, 14242, 14243, 
    14244, 14245, 14246, 14247, 14248, 
    14249, 14250, 14251, 14252, 14253, 
    14254, 14255, 14256, 14257, 14258, 
    14259, 14260, 14261, 14263, 14264, 
    14265, 14266, 14267, 14268, 14269, 
    14270
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00072

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "76.81"
    },
    "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": 32,
      "rows_produced_per_join": 32,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_product_descriptions`.`product_id` in (13593,13601,14240,14241,14242,14243,14244,14245,14246,14247,14248,14249,14250,14251,14252,14253,14254,14255,14256,14257,14258,14259,14260,14261,14263,14264,14265,14266,14267,14268,14269,14270)) and (`portal`.`q_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "70.41",
        "eval_cost": "6.40",
        "prefix_cost": "76.81",
        "data_read_per_join": "122K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
13593 <p>This season, mans best friend can easily become womans best friend. Show your love for your puppy or for your dog by wearing paw print jewelry. These adorable paw print earrings are a whimsical and fun choice for women of all ages with pierced ears. Show the world how much you love your dog or your new puppy. Dogs represent obedience, protection and loyalty. A new pair of sterling silver stud paw print earrings a sensational way to show your love for your furry four legged friends. Do not pass up this delightful pair of sterling silver studs and keep your already fashionable look current.</p>
13601 <ul><li>Waltz into spring with these Gold Plated flower clip on earrings. A simple and chic accessory to have. This five petal flower clip on pair of earrings will go great with both casual and formal wear. They are Gold Plated and have a heart shaped petal flower design which will go perfectly with other floral designed jewelry. For anyone with non pierced ears, these flower clip on earrings are a must have.</li></ul>
14240 <ol><li>Bio Etic Bijoux Italy Earring Rivolo 10mm Light Turchese, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li></ol>
14241 <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14242 <ul><li>Bio Etic Bijoux Italy Earring Butterfly 10mm Crystal. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14243 <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14244 <ul><li>Bio Etic Bijoux Italy Earring Flower 10mm Crystal, Bioetic Bijoux.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14245 <ul><li>Bio Etic Bijoux Italy Earring Rivolo 10mm Paradise Shine, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14246 <ul><li>Bio Etic Bijoux Italy Earring Star 10mm Bermude Blue, Bioetic Bijoux.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14247 <ul><li>Bio Etic Bijoux Italy Earring Heart 8X8. 8mm Light Siam.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>
14248 <ul><li>Bio Etic Bijoux Italy Earring Butterfly 10mm Rose Peach, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14249 <ul><li>Bio Etic Bijoux Italy Earring Baby Cat Love Smaltato, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14250 <ul><li>Bio Etic Bijoux Italy Earring Red Ladybug Smaltata, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14251 <ul><li>Bio Etic Bijoux Italy Earring Pendente Heart, Bioetic Bijoux. </li><li><span></span>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> <span class="redactor-selection-marker"></span>Imported From Dubai.</li></ul>
14252 <ul><li>Bio Etic Bijoux Italy Earring Turtle Smaltata Verde, Bioetic Bijoux.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14253 <ul><li>Bio Etic Bijoux Italy Earring Star 10mm Crystal. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14254 <ul><li>Bio Etic Bijoux Italy Earring Pearl 8mmcr</li><li>nly One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14255 <ul><li>Bio Etic Bijoux Italy Earring Flower 6mm Acquamarina.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14256 <ul><li>Bio Etic Bijoux Italy Earring Star 6mmvitrail Light, Bioetic Bijoux. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li><li></li></ul>
14257 <ul><li>Bio Etic Bijoux Italy Earring Bat 8mm Crystal. The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li><li></li></ul>
14258 <ul><li>Bio Etic Bijoux Italy Earring Heart 6X6. 6mm Light Siam. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14259 <ul><li>Bio Etic Bijoux Italy Earring Drop 6mm Rose. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14260 <ul><li>Bio Etic Bijoux Italy Earring Pearl 8mm White. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14261 <ul><li>Bio Etic Bijoux Italy Earring Butterfly 5mm Rose Peach. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested.</li><li> Imported From Dubai.</li></ul>
14263 <p>Bio Etic Bijoux Italy Earring Moon 8X5mm Aurora Boreale. The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</p>
14264 <ul><li>Bio Etic Bijoux Italy Earring Bat 8mm Denim Blue.</li><li> The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14265 <ul><li>Bio Etic Bijoux Italy Earring Xirius 7. </li><li>15mmcrystal. The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14266 <ul><li>Bio Etic Bijoux Italy Earring Oval Rivolo 6X8mm Rose. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14267 <ul><li>Bio Etic Bijoux Italy Earring Xirius 7. 15mm Liliac Shadow. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. </li><li>Imported From Dubai.</li></ul>
14268 <ul><li>Bio Etic Bijoux Italy Earring Star 5mm Aurora Boreale. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. I</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li><li>mported From Dubai.</li></ul>
14269 <ul><li>Bio Etic Bijoux Italy Earring Luna 8X5mmcrystal. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li><li></li></ul>
14270 <ul><li>Bio Etic Bijoux Italy Earring Goccia 6mm Crystal. </li><li>The Only One In World To Have No Lead, Free of Toxic or Carcinogenic Substances and Nickel Tested. Imported From Dubai.</li><li class="jsx-1889249662">Made of skin safe material which prevents allergies occurring due to close proximity with metal</li><li class="jsx-1889249662">Detailed intricacies and excellently polished finish make it a unique, luxurious accessory</li><li class="jsx-1889249662">Designed for the minimalists who do not prefer heavy jewellery</li></ul>