SELECT 
  jmj_product_descriptions.product_id, 
  jmj_product_descriptions.short_description, 
  IF(
    jmj_product_descriptions.short_description = '' 
    OR jmj_product_descriptions.short_description IS NULL, 
    jmj_product_descriptions.full_description, 
    ''
  ) AS full_description 
FROM 
  jmj_product_descriptions 
WHERE 
  jmj_product_descriptions.product_id IN (
    1705, 1730, 1654, 1662, 1713, 1733, 1682, 
    1675, 1702, 1728, 1719, 1511
  ) 
  AND jmj_product_descriptions.lang_code = 'en'

Query time 0.01100

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.81"
    },
    "table": {
      "table_name": "jmj_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": 12,
      "rows_produced_per_join": 12,
      "filtered": "100.00",
      "index_condition": "((`jmj_test`.`jmj_product_descriptions`.`product_id` in (1705,1730,1654,1662,1713,1733,1682,1675,1702,1728,1719,1511)) and (`jmj_test`.`jmj_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "26.41",
        "eval_cost": "2.40",
        "prefix_cost": "28.81",
        "data_read_per_join": "45K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
1511 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Colour: green</li><li>Solid</li><li>V-neck</li><li>Three-quarter, regular sleeves</li><li>Straight shape with regular style</li><li>Zari detail</li><li>Calf length with straight hem</li><li>Machine weave regular Linen Cotton</li></ul> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Linen Cotton<br />Hand Wash</p> <p></p>
1654 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Blue solid ankle length leggings, has an elasticated waistband and slip-on closure</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a size 6XL</p> <h4>Material & Care</h4> <p>Cotton, Spandex<br />Normal hand wash or machine wash</p>
1662 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Blue and gold-toned printed unstitched dress material<br />Blue and gold-toned printed kurta fabric<br />Blue and gold-toned printed bottom fabric<br />Blue and gold-toned printed dupatta, has tassels border<br />Disclaimer: Images are for referral purposes only. The actual product is unstitched</p> <h4>Size & Fit</h4> <p>Top: 2.25 Mtr.<br />Bottom: 2 .20Mtr.<br />Dupatta: 2.10 Mtr.<br />Unstitched Dress Material can be stitched upto XXL</p> <h4>Material & Care</h4> <p>Cotton<br />Machine Wash</p>
1675 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Purple and White floral printed maxi dress</li><li>Sweetheart Neck</li><li>Short, puff sleeves</li><li>Gathered or pleated detail</li><li>Maxi length in Flounce hem</li><li>Cotton fabric</li></ul> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Fabric: Cotton <br />Wash: Hand wash</p>
1682 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Green solid embroidered dupatta beads and stones, embellished border</p> <h4>Size & Fit</h4> <p>Length - 2.5 Meter<br />Width - 0.83 Meter<br /><br /></p> <h4>Material & Care</h4> <p>Silk Blend<br />Hand Wash</p>
1702 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Pink polyester casual jacket<br />Hooded<br />Bomber<br />Long sleeves<br />Straight hemline<br />Polyester liningHigh Star - Product by BRND.ME</p> <h4>Size & Fit</h4> <p>Regular fit<br />The model (height 5.8') is wearing a size S</p> <h4>Material & Care</h4> <p>Polyester<br />Machine Wash</p>
1705 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Teal solid regular-fit casual blazer, has a notched lapel, long sleeves, single-breasted with double button closure and two pockets</p> <h4>Material & Care</h4> <p>Polyester<br />Fitted jacket in stretchable knit with notch lapels,With flap pockets,statement buttons,Best for formal or semiformal events,nylon rayon polyester elastane fabric</p>
1713 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Maroon solid empire dress</li><li>Round neck</li><li>Three-quarter, regular sleeves</li><li>Midi length in flounce hem </li></ul> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>100%Viscose Rayon<br />Hand Wash</p>
1719 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Blue solid basic jumpsuit, has a halter neck, sleeveless, 2 pockets</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Polyester<br />Machine wash</p>
1728 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>ASSEMBLE STRETCH SUPER WIDE LEG DENIM JEANS IN LIGHT BLUE COLOR</p> <ul><li>Light shade, light fade blue jeans</li><li>Wide leg, high-rise</li><li>Clean look</li><li>Strechable</li><li>5 pocket</li><li>Length: regular</li></ul> <h4>Size & Fit</h4> <p><br />Fit: Wide Leg<br />Stretchable<br />The model (height 5'8) is wearing a size 28</p>
1730 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Lavender high-rise solid capris, has drawstring closure, 2 pocket</p> <h4>Size & Fit</h4> <p>Regular Fit<br />The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>100% Cotton<br />Machine Wash</p>
1733 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Blue solid denim dungarees, has shoulder straps, waistband with belt loops and button closure, 5 pockets</p> <h4>Size & Fit</h4> <p>The model (height 5'8'') is wearing a size 28</p> <h4>Material & Care</h4> <p>Cotton<br />Machine wash</p>