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 (
    1730, 1733, 1728, 1731, 1732, 1734, 1729, 
    814, 816, 817, 818, 819
  ) 
  AND jmj_product_descriptions.lang_code = 'en'

Query time 0.00687

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 (1730,1733,1728,1731,1732,1734,1729,814,816,817,818,819)) 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
814
816
817
818
819
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>
1729 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Beige knitted parallel</li><li>Straight fit</li><li>Brand Fit: relaxed straight leg</li><li>High-rise</li><li>Length: regular</li><li>Pattern: solid</li><li>Flat-front, with no pleats design</li><li>Feature: plain</li><li>2 pockets</li><li>Hook and Bar closure </li></ul> <h4>Size & Fit</h4> <p>Brand Fit: Relaxed Straight Leg<br />Fit: Straight Fit<br />The model (height 5'8) is wearing a size 28</p> <h4>Material & Care</h4> <p>95% Polyester 5% Elastane<br />Hand Wash</p><p></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>
1731 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Grey solid mid-rise sports shorts, has 2 pockets, drawstring closure</p> <h4>Size & Fit</h4> <p>Loose Fit<br />The model (height 5'8) is wearing a size 28</p> <h4>Material & Care</h4> <p>Cotton<br />Machine Wash</p>
1732 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Green solid high-rise mini skorts with attached inner shorts, has an elasticated waistband with slip-on closure, and a flared hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing size S</p> <h4>Material & Care</h4> <p>Nylon Fabric<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>
1734 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Navy blue solid regular-fit track pants, has an elasticated waistband with a drawstring fastening, and two pockets</p> <h4>Size & Fit</h4> <p>Regular Fit<br />The model (height 5'8") is wearing size S</p> <h4>Material & Care</h4> <p>60% Cotton 40% Polyester<br />Machine-wash</p>