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 (
    37309, 37310, 37311, 37312, 37313, 37314, 
    37315, 37316, 37317, 37318, 37319, 
    37320, 37321, 37322, 37323, 37324
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00047

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 (37309,37310,37311,37312,37313,37314,37315,37316,37317,37318,37319,37320,37321,37322,37323,37324)) 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
37309 <ul><li>Sex:Men</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37310 <ul><li>Sex:Men</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37311 <ul><li>Sex:Men</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37312 <ul><li>Sex:Unisex</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37313 <ul><li>Sex:Men</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37314 <ul><li>Sex:Men</li> <li>General Variety:Perfume</li> <li>Perfume Type:Eau de Parfum</li> <li>Brand:Salvatore</li> </ul>
37315 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">All our fragrances are 100% originals by their original designers.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">We do not sell any knockoffs or immitations.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Packaging for this product may vary from that shown in the image above.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Eau De Toilette Spray</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">3.0 oz</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">New In Box</span></li> </ul>
37316 <div class="a-section burj"> <div class="feature"> <div class="a-section a-spacing-medium"> <div class="a-section collapsedFeatureBullets showAllFeatureBullets"> <div class="a-section a-spacing-none"> <div class="a-section a-spacing-none"> <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">Salvatore Ferragamo presents a new F in his collection</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">F for Fascinating Night arrives on the market in September 2009 as EDP, a more intriguing, stronger and more powerful version of perfume F for Fascinating from 2007</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This product is firm hold and natural finish</span></li> </ul></div> </div> </div> </div> <div class="a-section expandableFBSectionPlaceholder"> </div> </div> <div class="feature"> </div> </div> <div class="a-section a-spacing-none burj"> <div class="feature"> </div> </div> <div class="a-section a-spacing-none burj"> <div class="feature"> <div> </div> </div> </div>
37317 <ul class="a-unordered-list a-vertical a-spacing-none"><li><span class="a-list-item">product of the house FERRAGAMO</span></li> <li><span class="a-list-item">perfumes</span></li> <li><span class="a-list-item">new product</span></li> </ul>
37318 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">By reviving the feeling of love and life pleasure Salvatore Ferragamo presents new colors and illustrations on the flacon of In canto Bloom, which has been on the market since 2010</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">By celebrating the maturation of girls into young women, In canto Bloom changes design and receives new</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">The colorful world full of positivity and youthful dash characterizes the whole collection In canto, including the latest fragrance, which has recently been introduced—Incanto Amity</span></li> </ul>
37319 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">By reviving the feeling of love and life pleasure Salvatore Ferragamo presents new colors and illustrations on the flacon of Incanto Bloom, which has been on the market since 2010</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">By celebrating the maturation of girls into young women, Incanto Bloom changes design and receives new</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">The colorful world full of positivity and youthful dash characterizes the whole collection Incanto, including the latest fragrance, which has recently been introduced—Incanto Amity</span></li> </ul>
37320 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">In canto Pour Homme by Salvatore Ferragamo is a Woody Floral Musk fragrance for men</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">In canto Pour Homme was launched in 2003</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">The nose behind this fragrance is Louise Turner</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Packaging for this product may vary from that shown in the image above</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This item is not for sale in Catalina Island</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This item is not for sale in Catalina Island</span></li> </ul>
37321 <div class="a-section a-spacing-none expandableSection"> <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">Passion fruit And Honeysuckle</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Rose And Jasmine</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Woodsy Notes, Musk</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Product Packaging May Vary</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Packaging for this product may vary from that shown in the image above</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This item is not for sale in Catalina Island</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This item is not for sale in Catalina Island</span></li> </ul></div>
37322 <ul><li><span>The difference lies in the volume of perfume oil. While Eau de Toilette contains 5-9%, Eau de Parfum contains more, usually 8-14%. Eau de Parfums therefore last longer and smell more intense. </span></li> </ul>
37323 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">In canto Dream was made by Laurent Bruere in 2005, after the classic In canto</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">In canto Dream is a magical elixir that helps your imagination and fills you with joy</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">The fragrance is full of colors and fantasies</span></li> </ul>
37324 <ul class="a-unordered-list a-vertical a-spacing-none"><li class="showHiddenFeatureBullets"><span class="a-list-item">All our fragrances are 100% originals by their original designers.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">We do not sell any knockoffs or immitations.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Packaging for this product may vary from that shown in the image above.</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">Eau de toilette</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">3.4 ounce</span></li> <li class="showHiddenFeatureBullets"><span class="a-list-item">This item is not a tester</span></li> </ul>