SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id, 
  descr1.full_description as full_description 
FROM 
  cscart_products as products 
  LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id 
  AND descr1.lang_code = 'en' 
  LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id 
  AND prices.lower_limit = 1 
  LEFT JOIN cscart_companies AS companies ON companies.company_id = products.company_id 
  INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_categories.storefront_id IN (0, 1) 
WHERE 
  1 
  AND cscart_categories.category_id IN (252) 
  AND companies.status IN ('A') 
  AND (
    products.usergroup_ids = '' 
    OR FIND_IN_SET(0, products.usergroup_ids) 
    OR FIND_IN_SET(1, products.usergroup_ids)
  ) 
  AND products.status IN ('A') 
  AND prices.usergroup_id IN (0, 0, 1) 
  AND products.parent_product_id = 0 
  AND products.company_id IN('1', '2', '3', '4', '5', '6') 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  product asc, 
  products.product_id ASC 
LIMIT 
  0, 48

Query time 0.00186

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9.53"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "const",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.20",
                "prefix_cost": "0.00",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ]
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 4,
              "rows_produced_per_join": 4,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "1.07",
                "eval_cost": "0.80",
                "prefix_cost": "1.88",
                "data_read_per_join": "64"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "status",
                "idx_parent_product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 1,
              "filtered": "42.58",
              "cost_info": {
                "read_cost": "4.00",
                "eval_cost": "0.34",
                "prefix_cost": "6.67",
                "data_read_per_join": "8K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo1`.`products`.`parent_product_id` = 0) and ((`atulecarter_atul_demo1`.`products`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo1`.`products`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo1`.`products`.`usergroup_ids`)) and (`atulecarter_atul_demo1`.`products`.`status` = 'A') and (`atulecarter_atul_demo1`.`products`.`company_id` in ('1','2','3','4','5','6')) and (`atulecarter_atul_demo1`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "table": {
              "table_name": "companies",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "ref": [
                "atulecarter_atul_demo1.products.company_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "16.67",
              "cost_info": {
                "read_cost": "1.70",
                "eval_cost": "0.06",
                "prefix_cost": "8.72",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "(`atulecarter_atul_demo1`.`companies`.`status` = 'A')"
            }
          },
          {
            "table": {
              "table_name": "descr1",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "product_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.28",
                "eval_cost": "0.06",
                "prefix_cost": "9.06",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product",
                "full_description"
              ]
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "usergroup",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "atulecarter_atul_demo1.products_categories.product_id"
              ],
              "rows_examined_per_scan": 3,
              "rows_produced_per_join": 0,
              "filtered": "97.36",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.30",
                "eval_cost": "0.17",
                "prefix_cost": "9.53",
                "data_read_per_join": "19"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`atulecarter_atul_demo1`.`prices`.`lower_limit` = 1) and (`atulecarter_atul_demo1`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id full_description
182 GBC® Smart-View® 3-Ring Report Cover CS-Cart P 0 <p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblDescription">Clear front cover folds back and keeps title sheet intact by securing it inside cover edge. Interior 3-ring design holds 3-hole punched report pages.</span></p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblFeatures">&nbsp;</span></p> <ul style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;"> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Durable polypropylene material</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Rings hold up to 40 3-hole punched sheets</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Soft, rounded spine and textured cover</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Large back pocket with business card holder</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Black</li> </ul> </p>
176 Quartet® Euro™ Magnetic Porcelain Total Erase® Mobile Easel CS-Cart P 0 <p> <p class="prod16bold" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-weight: bold; font-size: 16px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblTitle">Quartet&reg; Euro&trade; Magnetic Porcelain Total Erase&reg; Mobile Easel</span></p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblDescription">Ultra-durable, ultra-smooth 27" x 41" mobile presentation easel with DuraMax&reg; porcelain surface that will not scratch, dent, stain or ghost. Delivers superior performance when collaboration is needed in high-profile, heavy-use office environments. Magnetic surface doubles as bulletin board. Easy-to-clean writing surface requires minimal use of Quartet&reg; cleaning solutions. Adjustable hooks and clamp hold standard-sized flipcharts for easy sheet tear-away meeting notes. Smooth-rolling 5-caster star-base wheels lock firmly in place for total control and mobility. Flexible spring-loaded height adjuster moves from 67" to 77" for optimal height. Includes spacious folding accessory tray and 4 assorted Quartet&reg; whiteboard markers. Sleek Euro&trade; design with matte aluminum finish for maximum style and durability. 100% Satisfaction Guaranteed.</span></p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblFeatures">&nbsp;</span></p> <ul style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;"> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Ultra-durable, ultra-smooth 27" W x 41" H mobile presentation easel with DuraMax&reg; porcelain surface that will not scratch, dent, stain or ghost</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Delivers superior performance when collaboration is needed in high-profile, heavy-use office environments</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Magnetic surface doubles as bulletin board</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Adjustable hooks and clamp hold standard-sized flipcharts for easy sheet tear-away</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Easy-to-clean writing surface requires minimal use of Quartet&reg; cleaning solutions</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Smooth-rolling 5-caster star-base wheels lock firmly in place for total control and mobility</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Flexible spring-loaded height adjuster moves from 67" to 77" for optimal height</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Includes spacious folding accessory tray and 4 assorted Quartet&reg; whiteboard markers</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Sleek Euro&trade; design with matte aluminum finish for maximum style and durability</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">100% Satisfaction Guaranteed</li> </ul> </p>
174 Swingline® Optima® 20 Electric Stapler CS-Cart P 0 <p>&nbsp;</p> <h2 style="color: #424242; font-size: 13px; font-family: arial, verdana, sans-serif; padding: 0px; margin: 0px;"><span id="_ctl0_MainContent__ctl0_lblProdName" style="padding: 0px; margin: 0px;">Swingline&reg; Optima&reg; 20 Electric Stapler</span></h2> <p style="padding-top: 0px; padding-bottom: 10px; color: #424242; font-family: arial, verdana, sans-serif; font-size: 11px; margin: 0px;"><span id="_ctl0_MainContent__ctl0_lblWebCopy" style="padding: 0px; margin: 0px;">Quiet, space-saving desktop electric stapler is packed with user-friendly features including intuitive user control that helps provide accurate staple placement.</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; color: #424242; font-family: arial, verdana, sans-serif; font-size: 11px;"> <span id="_ctl0_MainContent__ctl0_lblFeatBenefits" style="padding: 0px; margin: 0px;"> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Jam free stapling guaranteed when using S.F.&reg; 4&reg; or Optima&trade; Premium Staples</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Durable construction to withstand everyday use</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Convenient, built-in detachable staple remover &amp; LED light to indicates low staple count</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Manual or automatic operation, with both plug-in and battery power options</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">20 sheet stapling capacity</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Limited 5-year warranty &amp; 100% Performance Guarantee</li> </span> </ul> <p>&nbsp;</p>
171 Swingline™ Stack-and-Shred™ 100X Hands Free Shredder CS-Cart P 0 <p> <p style="padding-top: 0px; padding-bottom: 10px; color: #424242; font-family: arial, verdana, sans-serif; font-size: 11px; margin: 0px;"> <h2 style="font-size: 13px; padding: 0px; margin: 0px;"><span id="_ctl0_MainContent__ctl0_lblProdName" style="padding: 0px; margin: 0px;">Swingline&trade; Stack-and-Shred&trade; 100X Hands Free Shredder</span></h2> <p style="padding-top: 0px; padding-bottom: 10px; color: #424242; margin: 0px;"><span id="_ctl0_MainContent__ctl0_lblWebCopy" style="padding: 0px; margin: 0px;">Experience the productivity of hands free shredding. The Swingline&trade; Stack-and-Shred&trade; shredder works without your supervision; just stack, shut and you're done. Stack up to 100 sheets for automatic shredding at home or in the office. Manual bypass handles 6 sheets of glossy, folded or crumpled paper.</span></p> <ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px;"> <span id="_ctl0_MainContent__ctl0_lblFeatBenefits" style="padding: 0px; margin: 0px;"> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Hands free shredding-just stack, shut and you're done</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Auto+ jam clearance automatically reverses and re-feeds stuck papers to clear any jam. LED light indicates rare jams that require user action.</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Cross-cut shredder meets moderate security needs (Level 3)</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Shreds credit cards, paper clips, staples, documents into 7-gallon waste bin with view window</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">100 sheet shred capacity on automatic operation, 6 sheet shred capacity on manual</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Self Clean feature extends cutter life</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">2-year warranty on machine, 2-year on cutters</li> <li style="list-style-image: url(http://www.acco.com/swingline/assets/images/li_plus.gif); margin: 0px;">Dimensions: 17&rdquo;H x 12&rdquo;W x 14&rdquo;D, fits under a desk</li> </span> </ul> </p> </p>
178 Wilson Jones® 364 Heavy Duty Round Ring Binder with Label Holder, 1", Black CS-Cart P 0 <p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblDescription">Built to last, this heavy duty binder with standard round rings is made of flexible polypropylene allowing it to fully protect your documents from the elements. The label holder on the binder spine is perfect for titling your projects.</span></p> <p class="body12" style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; color: #333333; font-size: 12px; text-align: left; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: #ffffff;"><span id="_ctl0_MainContent_lblFeatures">&nbsp;</span></p> <ul style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-align: left; background-color: #ffffff;"> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">220 sheet capacity in 1 inch binder size</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">No-Gap round rings close tightly</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Eco-friendly, PVC Free polypropylene material is virtually impossible to tear</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">100% recycled chipboard and 45% post consumer waste minimum recycled content</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">CleanView&trade; protection prevents ink from transferring off papers onto binder</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Two clear interior pockets and label holder on spine</li> <li class="body12" style="color: #333333; font-size: 12px; text-align: left; text-decoration: none;">Available in black, blue and dark red, multiple sizes</li> </ul> </p>