SELECT 
  cscart_product_descriptions.product_id, 
  cscart_product_descriptions.short_description, 
  IF(
    cscart_product_descriptions.short_description = '' 
    OR cscart_product_descriptions.short_description IS NULL, 
    cscart_product_descriptions.full_description, 
    ''
  ) AS full_description, 
  cscart_product_descriptions.unit_name 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (
    402581, 412399, 410960, 443125, 456333, 
    431941, 422470, 458724, 439272, 436228, 
    455826, 418518
  ) 
  AND cscart_product_descriptions.lang_code = 'ar'

Query time 0.00248

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0216566,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_descriptions",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "product_id"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["product_id", "lang_code"],
          "loops": 1,
          "rows": 12,
          "cost": 0.0216566,
          "filtered": 100,
          "attached_condition": "cscart_product_descriptions.product_id in (402581,412399,410960,443125,456333,431941,422470,458724,439272,436228,455826,418518) and cscart_product_descriptions.lang_code = 'ar'"
        }
      }
    ]
  }
}

Result

product_id short_description full_description unit_name
402581 Classic Camera 871 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
410960 Classic Drone 101 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
412399 Classic Camera 926 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
418518 Classic Drone 529 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
422470 Classic Drone 244 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
431941 Classic Drone 206 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
436228 Classic Drone 365 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
439272 Classic Drone 318 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
443125 Classic Drone 161 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
455826 Classic Drone 381 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
456333 Classic Drone 179 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.
458724 Classic Drone 246 — high quality, tested and ready to ship. Generated sample data for CS-Cart import.