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, 1713, 1702, 1719, 1723, 1696, 1699, 
    1707, 1697, 1735, 1695, 1686, 1721, 
    1636, 1627, 1638, 1640, 1618, 1621, 
    1632, 1620, 1624, 1616, 1613, 1639
  ) 
  AND jmj_product_descriptions.lang_code = 'en'

Query time 0.01093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "60.01"
    },
    "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": 25,
      "rows_produced_per_join": 25,
      "filtered": "100.00",
      "index_condition": "((`jmj_test`.`jmj_product_descriptions`.`product_id` in (1705,1713,1702,1719,1723,1696,1699,1707,1697,1735,1695,1686,1721,1636,1627,1638,1640,1618,1621,1632,1620,1624,1616,1613,1639)) and (`jmj_test`.`jmj_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "55.01",
        "eval_cost": "5.00",
        "prefix_cost": "60.01",
        "data_read_per_join": "95K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ]
    }
  }
}

Result

product_id short_description full_description
1613 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>This top is a perfect blend of classic and casual style. The structured mandarin collar gives it a polished feel, which is beautifully contrasted by the relaxed fit and eye-catching tassel accents. The all-over striped pattern adds a subtle visual interest, making it easy to pair with your favorite jeans or shorts. Color: Blue & pink. Neckline: V-neck. Sleeve Styling: Long cuffed.</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size XS</p> <h4>Material & Care</h4> <p>100% Cotton<br />Machine wash</p>
1616 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Red Tshirt for women</li><li>Graphic printed</li><li>Longline length</li><li>Round neck</li><li>Short, regular sleeves</li><li>Knitted cotton fabric</li></ul> <h4>Size & Fit</h4> <p>Oversized<br />The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>100% Cotton,<br />Machine Wash</p>
1618 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Green and white geometric printed relaxed-fit casual shirt, has a spread collar, button placket, three-quarter sleeves and curved hem</p> <h4>Size & Fit</h4> <p>Relaxed-Fit<br />The model (height 5'8") is wearing a size S</p> <h4>Material & Care</h4> <p>Cotton<br />Machine Wash<br />Dry Clean</p>
1620 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Solid sweatshirt has a round neck, long sleeves, straight hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>58% Cotton & 42% Polyester<br />Machine Wash</p>
1621 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>White self design open front regular shrug ,has short sleeves, straight hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Cotton<br />Hand Wash</p>
1624 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Gold-toned delf design cable knit cardigan sweater, tutle neck, long sleeves, Asymmetric hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Wool<br />Hand wash</p>
1627 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>White and Pink colourblocked bomber jacket, has a hood, 2 pockets, zip closure, long sleeves, straight hem, and polyester lining</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a size S</p> <h4>Material & Care</h4> <p>Shell: 100% Polyester<br />Lining: 100% Polyester<br />Machine Wash</p>
1632 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Maroon solid regular-fit formal suit<br />Maroon solid regular-fit single-breasted blazer, has a Shawl Collar,3/4th Sleeve<br />Maroon solid single-breasted regular-fit waistcoat, open-front blazer features a sleek shawl collar<br />A pair of Maroon solid regular fit high-rise trousers, has a waistband with belt loops has a slip on closure</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>80% Polyester and 20% Lycra<br />Dry clean</p>
1636 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Pink floral print fit & flare dress</li><li>Mandarin collar</li><li>Short, puff sleeve</li><li>Midi length in flared hem</li></ul> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Poly silk<br />Machine wash</p>
1638 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Navy blue solid basic jumpsuit ,has a off-shoulder, 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>Denim, 96% Cotton 4% spandex<br />Machine Wash</p>
1639 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>This tracksuit consists of a jacket and a pair of joggers<br />Black & white colourblocked jacket has a stand collar, full zip closure and long sleeves<br />Black & white colourblocked mid-rise joggers has an elasticated waistband with slip-on closure, cuffed hems and two pockets</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a size S</p> <h4>Material & Care</h4> <p>Polyester & Elastane<br />Machine Wash</p>
1640 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Red Solid knee-length rain jacket comes with two front pockets<br />Drawstrings attached to the hood and a cord lock stopper<br />Front long zipper with velcro and a flap over to ensure water does not seep through<br />The attractive coloured jacket comes with an adjustable band at the cuffs<br />Also has an attached drawstrings at the waist to adjust the fit and get a stylish and trendy look.</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a size L</p> <h4>Material & Care</h4> <p>Polyester<br />Hand wash<br />Do not iron<br />Do not dry-clean<br />Do not tumble dry</p>
1686 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Blue regular shirt style top</li><li>Floral print</li><li>Round neck, short, puff sleeves </li><li>Woven</li></ul> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Viscose Rayon<br />Hand Wash</p>
1695 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <ul><li>Chocolate brown</li><li>Tshirt for women</li><li>Graphic printed</li><li>Regular length</li><li>Round neck</li><li>Short, Drop-Shoulder Sleeves</li><li>Knitted pure cotton fabric</li></ul> <p>Style with beige pants and a tote bag.<br /></p> <h4>Size & Fit</h4> <p>Oversized<br />The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>100% Cotton<br />Machine wash</p>
1696 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Red and white vertical striped opaque Casual shirt ,has a spread collar, button placket, long roll-up sleeves, curved hem</p> <h4>Size & Fit</h4> <p>Regular Fit<br />Size worn by the model: S<br />Chest: 30''<br />Height: 5'8''<br /></p> <h4>Material & Care</h4> <p>52% Polyester, 48% Viscose Rayon<br />Machine wash</p>
1697 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Brown graohic printed sweatshirt has a round neck, long sleeves, ribbed hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size 3XL</p> <h4>Material & Care</h4> <p>52%Cotton, 48% Polyester<br />Machine wash</p>
1699 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Beige self design open front regular shrug ,has three-quarter sleeves, straight hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>Material : Cotton || Care Instructions: As Per Care Label</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>
1707 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Off white formal suit with blazers, and trousers<br />off white solid regular-fit blazer, has a notched lapel, single-breasted with double button closures, long sleeves, one welt pocket, and two flap pockets, and a double-vented back hem<br />off white solid mid-rise trousers, has a zip fly with a button and a hook-and-bar closure, four pockets, a waistband with belt loops</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a S</p> <h4>Material & Care</h4> <p>Polyviscose<br />Dry Clean</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>
1721 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>This tracksuit consists of a jacket and a pair of joggers<br />Grey and yellow colourblocked jacket has a high neck collar, full zip closure and long sleeves<br />Grey and yellow colourblocked mid-rise joggers has an elasticated waistband with drawstring closure, cuffed hems and two pockets</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing a size S</p> <h4>Material & Care</h4> <p>Polyester & Elastane<br />Machine Wash</p>
1723 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>Pink solid waterproof rain jacket, has an attached hood, seam sealed with adjustable hems, long sleeves, back slit and slip-on closure</p> <h4>Size & Fit</h4> <p>The model (height 5'8") is wearing size S</p> <h4>Material & Care</h4> <p>Polyester<br />Wash gentle<br />Tumble dry low<br />Medium Iron<br />Line dry in shade<br />Do not dry clean<br />Do not bleach</p>
1735 <p><span style="font-size:21px;font-weight:700;">Product Details </span></p> <p>White self design pullover ,has a round neck, long sleeves, ribbed hem</p> <h4>Size & Fit</h4> <p>The model (height 5'8) is wearing a size S</p> <h4>Material & Care</h4> <p>100% Acrylic<br />Machine Wash</p>