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 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (
    366929, 366928, 366927, 366926, 366925, 
    366924, 366923, 366922, 366921, 366920, 
    366919, 366918, 366917, 366916, 366915, 
    366914, 366913, 366912, 366911, 366910
  ) 
  AND cscart_product_descriptions.lang_code = 'en'

Query time 0.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.04"
    },
    "table": {
      "table_name": "cscart_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": 20,
      "rows_produced_per_join": 20,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "24.04",
        "eval_cost": "4.00",
        "prefix_cost": "28.04",
        "data_read_per_join": "136K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description"
      ],
      "attached_condition": "((`webmarco`.`cscart_product_descriptions`.`product_id` in (366929,366928,366927,366926,366925,366924,366923,366922,366921,366920,366919,366918,366917,366916,366915,366914,366913,366912,366911,366910)) and (`webmarco`.`cscart_product_descriptions`.`lang_code` = 'en'))"
    }
  }
}

Result

product_id short_description full_description
366910 <h2 style="color:#000000;font-size:30px;"> Kitchen Towel - KT 700 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan kitchen paper towels. 700 Sheets. White.</p> <p style="color:#000000;font-size:20px;"> SKU: 630709 <br /> UPC: 061328016562 <br /> Weight: 13.3 <br /> Package Width: 22.75 <br /> Package Length: 22.75 <br /> Package Height: 13.25 <br /> Model Number: 01656 <br /> Brand: White Swan <br /> </p>
366911 <h2 style="color:#000000;font-size:30px;"> Kitchen Towel - KT 2/250 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan 2-ply kitchen paper towels. 2 Rolls 250 Sheets. White.</p> <p style="color:#000000;font-size:20px;"> SKU: 630709 <br /> UPC: 061328016562 <br /> Weight: 13.3 <br /> Package Width: 22.75 <br /> Package Length: 22.75 <br /> Package Height: 13.25 <br /> Model Number: 01656 <br /> Brand: White Swan <br /> </p>
366912 <h2 style="color:#000000;font-size:30px;"> Kitchen Towel - KT 2/300 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan 2-ply kitchen paper towels. 2 Rolls 300 Sheets. White.</p> <p style="color:#000000;font-size:20px;"> SKU: 630709 <br /> UPC: 061328016562 <br /> Weight: 13.3 <br /> Package Width: 22.75 <br /> Package Length: 22.75 <br /> Package Height: 13.25 <br /> Model Number: 01656 <br /> Brand: White Swan <br /> </p>
366913 <h2 style="color:#000000;font-size:30px;"> Toilet Paper - TP 10/70 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan 1-Ply Bathroom Tissue - Eco-Friendly - Septic Tank Safe <br /> <br /> The high-quality 1-ply toilet paper is composed of at least 88% post-consumer content. It contains 1,000 sheets per roll and is offered here in a pack of 24 individually wrapped rolls which is convenient for medium and big families.</p> <p style="color:#000000;font-size:20px;"> Warranty: None <br /> Biodegradable: No <br /> Eco-friendly: No <br /> Marine and RV Grade: No <br /> Model Description: White Swan® 1-Ply Bathroom Tissue Poly Pack <br /> Number Of Rolls: 24 <br /> Safe For Septic Tanks: Yes <br /> Scented: No <br /> Series Name: N/A <br /> Square Footage per Package(ft2): 0 <br /> Square Footage per Package(m2): 0.0 <br /> Type: 1-ply <br /> </p>
366914 <h2 style="color:#000000;font-size:30px;"> Toilet Paper - TP 10/80 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan 1-Ply Bathroom Tissue - Eco-Friendly - Septic Tank Safe <br /> <br /> The high-quality 1-ply toilet paper is composed of at least 88% post-consumer content. It contains 1,000 sheets per roll and is offered here in a pack of 24 individually wrapped rolls which is convenient for medium and big families.</p> <p style="color:#000000;font-size:20px;"> Warranty: None <br /> Biodegradable: No <br /> Eco-friendly: No <br /> Marine and RV Grade: No <br /> Model Description: White Swan® 1-Ply Bathroom Tissue Poly Pack <br /> Number Of Rolls: 24 <br /> Safe For Septic Tanks: Yes <br /> Scented: No <br /> Series Name: N/A <br /> Square Footage per Package(ft2): 0 <br /> Square Footage per Package(m2): 0.0 <br /> Type: 1-ply <br /> </p>
366915 <h2 style="color:#000000;font-size:30px;"> Toilet Paper - TP 10/100 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> White Swan 1-Ply Bathroom Tissue - Eco-Friendly - Septic Tank Safe <br /> <br /> The high-quality 1-ply toilet paper is composed of at least 88% post-consumer content. It contains 1,000 sheets per roll and is offered here in a pack of 24 individually wrapped rolls which is convenient for medium and big families.</p> <p style="color:#000000;font-size:20px;"> Warranty: None <br /> Biodegradable: No <br /> Eco-friendly: No <br /> Marine and RV Grade: No <br /> Model Description: White Swan® 1-Ply Bathroom Tissue Poly Pack <br /> Number Of Rolls: 24 <br /> Safe For Septic Tanks: Yes <br /> Scented: No <br /> Series Name: N/A <br /> Square Footage per Package(ft2): 0 <br /> Square Footage per Package(m2): 0.0 <br /> Type: 1-ply <br /> </p>
366916 <h2 style="color:#000000;font-size:30px;"> Napkin Paper - NP 50-30 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> ECO-FRIENDLY NAPKINS: Reduce paper waste by switching to our durable cloth napkins. <br /> Material: High-quality durable polyester, satin-smooth feel, elegant, smooth and shiny peach skin fabric. <br /> Features: long-term and safe use, glossy satin surface, bright printing color, delicate 6mm hem, designed to prevent stains and wrinkles, hemmed edges. The seamless construction gives the napkin strength and durability. <br /> Ideal for both business and home use; Ideal as hotel napkins, wedding napkins, restaurant napkins, banquet table napkins, cocktail napkins and as party table napkins etc. <br /> It will improve the atmosphere at dinner. The napkin is oversized for better use, size: 50" x 30". One-sided printing. It will be a wonderful gift for relatives, parents, etc. <br /> It is only good for home use, but it is ideal for special occasions such as holiday parties, cocktail parties, weddings, catered events, buffets, baby showers, birthday parties, indoor or outdoor use.</p>
366917 <h2 style="color:#000000;font-size:30px;"> Napkin Paper - NP 100-30 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> ECO-FRIENDLY NAPKINS: Reduce paper waste by switching to our durable cloth napkins. <br /> Material: High-quality durable polyester, satin-smooth feel, elegant, smooth and shiny peach skin fabric. <br /> Features: long-term and safe use, glossy satin surface, bright printing color, delicate 6mm hem, designed to prevent stains and wrinkles, hemmed edges. The seamless construction gives the napkin strength and durability. <br /> Ideal for both business and home use; Ideal as hotel napkins, wedding napkins, restaurant napkins, banquet table napkins, cocktail napkins and as party table napkins etc. <br /> It will improve the atmosphere at dinner. The napkin is oversized for better use, size: 100" x 30". One-sided printing. It will be a wonderful gift for relatives, parents, etc. <br /> It is only good for home use, but it is ideal for special occasions such as holiday parties, cocktail parties, weddings, catered events, buffets, baby showers, birthday parties, indoor or outdoor use.</p>
366918 <h2 style="color:#000000;font-size:30px;"> Napkin Paper - NP 2/100-30 - Swan Family </h2> <p style="color:#000000;font-size:20px;"> ECO-FRIENDLY NAPKINS: Reduce paper waste by switching to our durable cloth napkins. <br /> Material: High-quality durable polyester, satin-smooth feel, elegant, smooth and shiny peach skin fabric. <br /> Features: long-term and safe use, glossy satin surface, bright printing color, delicate 6mm hem, designed to prevent stains and wrinkles, hemmed edges. The seamless construction gives the napkin strength and durability. <br /> Ideal for both business and home use; Ideal as hotel napkins, wedding napkins, restaurant napkins, banquet table napkins, cocktail napkins and as party table napkins etc. <br /> It will improve the atmosphere at dinner. The napkin is oversized for better use, size: 2/100" x 30". One-sided printing. It will be a wonderful gift for relatives, parents, etc. <br /> It is only good for home use, but it is ideal for special occasions such as holiday parties, cocktail parties, weddings, catered events, buffets, baby showers, birthday parties, indoor or outdoor use.</p>
366919 <h2 style="color:#000000;font-size:30px;"> Plastic Foil - Swan Family </h2> <p style="color:#000000;font-size:20px;"> 100% brand new and high quality <br /> Safety, convenient, efficient. <br /> Stainless steel blade is recessed to fingers. <br /> Open the cutter and place the film roll in the cutter tube. <br /> Close the cutter. <br /> Drag out the wanted length of the film and slightly cut it.You get the neat and clean film.</p>
366920 <h2 style="color:#000000;font-size:30px;"> Rubbish Bags - Swan Family </h2> <p style="color:#000000;font-size:20px;"> Eco-Friendly Trash Bags | Garbage Bags Used in Hotels, Offices and Kitchen </p>
366921 <h2 style="color:#000000;font-size:30px;"> Aluminum Foil - Swan Family </h2> <p style="color:#000000;font-size:20px;"> 1. Sharpening scissors <br /> 2. Easy <br /> 3. Clean dirty pans <br /> 4. Protect the stove <br /> 5. Eliminate the bad smell of the refrigerator <br /> </p>
366922 <h2 style="color:#000000;font-size:30px;"> Hand Towel Paper - V-F 15/130 - (AFSH) Away From Home V-Fold </h2> <p style="color:#000000;font-size:20px;"> V Fold, Interfold Paper Hand Towels 1ply White. Perfect for any Kitchen or Washroom. Open towel per hand dry that offers great savings. </p>
366923 <h2 style="color:#000000;font-size:30px;"> Hand Towel Paper - V-F 15/160 - (AFSH) Away From Home V-Fold </h2> <p style="color:#000000;font-size:20px;"> V Fold, Interfold Paper Hand Towels 1ply White. Perfect for any Kitchen or Washroom. Open towel per hand dry that offers great savings. </p>
366924 <h2 style="color:#000000;font-size:30px;"> Hand Towel Paper - V-F 15/190 - (AFSH) Away From Home V-Fold </h2> <p style="color:#000000;font-size:20px;"> V Fold, Interfold Paper Hand Towels 1ply White. Perfect for any Kitchen or Washroom. Open towel per hand dry that offers great savings. </p>
366925 <h2 style="color:#000000;font-size:30px;"> Hand Towel Paper - V-F 15/210 - (AFSH) Away From Home V-Fold </h2> <p style="color:#000000;font-size:20px;"> V Fold, Interfold Paper Hand Towels 1ply White. Perfect for any Kitchen or Washroom. Open towel per hand dry that offers great savings. </p>
366926 <h2 style="color:#000000;font-size:30px;"> Hand Towel Roll- LB 6/600 - (AFSH) Away From Home </h2> <p style="color:#000000;font-size:20px;"> Designed for Towel Roll dispensers this roll towel is perfect for all washroom applications plus many other areas where hand towels are needed. <br /> <br /> Soft and strong to offer good absorbency. </p>
366927 <h2 style="color:#000000;font-size:30px;"> Hand Towel Roll- LB 6/700 - (AFSH) Away From Home </h2> <p style="color:#000000;font-size:20px;"> Designed for Towel Roll dispensers this roll towel is perfect for all washroom applications plus many other areas where hand towels are needed. <br /> <br /> Soft and strong to offer good absorbency. </p>
366928 <h2 style="color:#000000;font-size:30px;"> Hand Towel Roll- LB 6/900 - (AFSH) Away From Home </h2> <p style="color:#000000;font-size:20px;"> Designed for Towel Roll dispensers this roll towel is perfect for all washroom applications plus many other areas where hand towels are needed. <br /> <br /> Soft and strong to offer good absorbency. </p>
366929 <h2 style="color:#000000;font-size:30px;"> Hand Towel Roll- LB 6/1000 - (AFSH) Away From Home </h2> <p style="color:#000000;font-size:20px;"> Designed for Towel Roll dispensers this roll towel is perfect for all washroom applications plus many other areas where hand towels are needed. <br /> <br /> Soft and strong to offer good absorbency. </p>