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 (1729, 1617) 
  AND jmj_product_descriptions.lang_code = 'en'

Query time 0.01096

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.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": 2,
      "rows_produced_per_join": 2,
      "filtered": "100.00",
      "index_condition": "((`jmj_test`.`jmj_product_descriptions`.`product_id` in (1729,1617)) and (`jmj_test`.`jmj_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "4.41",
        "eval_cost": "0.40",
        "prefix_cost": "4.81",
        "data_read_per_join": "7K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
1617
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>