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 (
    40981, 40982, 40983, 40984, 40985, 40986, 
    40987, 40988, 40989, 40990, 40991, 
    40992, 40993, 40994, 40995, 40996, 
    40997, 40998, 40999, 41000, 41001, 
    41002, 41003, 41004, 41005, 41006, 
    41007, 41008, 41009, 41010, 41011, 
    41012
  ) 
  AND q_product_descriptions.lang_code = 'en'

Query time 0.00425

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 (40981,40982,40983,40984,40985,40986,40987,40988,40989,40990,40991,40992,40993,40994,40995,40996,40997,40998,40999,41000,41001,41002,41003,41004,41005,41006,41007,41008,41009,41010,41011,41012)) 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
40981 <ul><li>Daniel Klein</li><li>Polarized Wayfarer Sunglasses DK1087C10</li></ul>
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993 <ul><li>Daniel Klein</li><li>Polarized Wayfarer Sunglasses DK1087C22</li><li class="jsx-1889249662">Acts as windshield and protects from UV rays</li><li class="jsx-1889249662">Blocks blue light and provide remarkable colour contrast</li><li class="jsx-1889249662">High-grade lenses reduce brightness without color distortion</li></ul>
40994
40995
40996 <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Tinted lenses shield the eyes from the harsh sun and help reduce blue light and glare</li><li class="jsx-1889249662">Soft, non-slip nose pads reduce the stress of prolonged wear</li><li class="jsx-1889249662">Shatter-resistant frame serves extensive, long-term usage</li><li class="jsx-1889249662">Well-sculpted arms with curved temple tips offer a secure fit</li><li class="jsx-1889249662">Reinforced hinges impart flexibility and help in the adjustment of the frame</li></ul>
40997
40998 <ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Tinted lenses shield the eyes from the harsh sun and help reduce blue light and glare</li><li class="jsx-1889249662">Soft, non-slip nose pads reduce the stress of prolonged wear</li><li class="jsx-1889249662">Shatter-resistant frame serves extensive, long-term usage</li><li class="jsx-1889249662">Well-sculpted arms with curved temple tips offer a secure fit</li><li class="jsx-1889249662">Reinforced hinges impart flexibility and help in the adjustment of the frame</li></ul>
40999 <p><span class="redactor-selection-marker"></span></p><ul class="jsx-1889249662 highlights"><li class="jsx-1889249662">Acts as windshield and protects from UV rays</li><li class="jsx-1889249662">Blocks blue light and provide remarkable colour contrast</li><li class="jsx-1889249662">High-grade lenses reduce brightness without color distortion</li></ul>
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012