SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id, 
  products.variation_sku, 
  companies.discreet_shipping as company_discreet_shipping 
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) 
  LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id 
WHERE 
  1 
  AND companies.status IN ('A') 
  AND products.company_id = 291 
  AND products.amount > 0 
  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.company_id = 291 
  AND products.parent_product_id = 0 
GROUP BY 
  products.product_id 
ORDER BY 
  popularity.total desc, 
  products.product_id ASC

Query time 0.05831

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3092.60"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "companies",
              "access_type": "const",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "company_id"
              ],
              "key_length": "4",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 1,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.00",
                "eval_cost": "0.10",
                "prefix_cost": "0.00",
                "data_read_per_join": "15K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company",
                "discreet_shipping"
              ]
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "status",
                "idx_parent_product_id"
              ],
              "key": "idx_parent_product_id",
              "used_key_parts": [
                "parent_product_id"
              ],
              "key_length": "4",
              "ref": [
                "const"
              ],
              "rows_examined_per_scan": 15524,
              "rows_produced_per_join": 305,
              "filtered": "1.97",
              "cost_info": {
                "read_cost": "884.27",
                "eval_cost": "30.53",
                "prefix_cost": "2436.68",
                "data_read_per_join": "1M"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "amount",
                "usergroup_ids",
                "parent_product_id",
                "variation_sku"
              ],
              "attached_condition": "((`cscartdb`.`products`.`company_id` = 291) and (`cscartdb`.`products`.`amount` > 0) and ((`cscartdb`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdb`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdb`.`products`.`usergroup_ids`))) and (`cscartdb`.`products`.`status` = 'A'))"
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "product_id",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "cscartdb.products.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 305,
              "filtered": "99.99",
              "cost_info": {
                "read_cost": "76.33",
                "eval_cost": "30.53",
                "prefix_cost": "2543.53",
                "data_read_per_join": "7K"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`cscartdb`.`prices`.`lower_limit` = 1) and (`cscartdb`.`prices`.`usergroup_id` in (0,0,1)))"
            }
          },
          {
            "table": {
              "table_name": "popularity",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "total"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "cscartdb.products.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 305,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "76.32",
                "eval_cost": "30.53",
                "prefix_cost": "2650.38",
                "data_read_per_join": "9K"
              },
              "used_columns": [
                "product_id",
                "total"
              ]
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "pt",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "cscartdb.products.product_id"
              ],
              "rows_examined_per_scan": 2,
              "rows_produced_per_join": 610,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "152.64",
                "eval_cost": "61.06",
                "prefix_cost": "2864.08",
                "data_read_per_join": "9K"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "cscartdb.products_categories.category_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 30,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "152.64",
                "eval_cost": "3.05",
                "prefix_cost": "3077.77",
                "data_read_per_join": "102K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "(((`cscartdb`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdb`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdb`.`cscart_categories`.`usergroup_ids`))) and (`cscartdb`.`cscart_categories`.`status` in ('A','H')) and (`cscartdb`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          },
          {
            "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": [
                "cscartdb.products.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 30,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "11.78",
                "eval_cost": "3.05",
                "prefix_cost": "3092.60",
                "data_read_per_join": "116K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id variation_sku company_discreet_shipping
38258 Genuine Leather Censored Heart-Shaped Nipple Pasties - Handcrafted and Reusable Wandering Chaos P 0 N
38254 Skull Pasties | Handmade | Real Leather| Gothic Fetish Accessories Wandering Chaos P 0 N
38207 Handmade Edgy Metallic Purple Leather Chest Harness - Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38213 Metallic Purple Genuine Leather with Black Hardware O-Ring Choker *LIMITED EDITION* Wandering Chaos P 0 N
38217 Daddy Genuine Leather Choker Wandering Chaos P 0 N
38247 Genuine Leather Halloween Pumpkin Nipple Pasties | Handmade Costume Accessories Wandering Chaos P 0 N
38199 Red Leather Waist Harness with Black Hardware - Versatile and Edgy - Handmade - Genuine Leather Wandering Chaos P 0 N
38201 Burgundy with rose gold leather small O-ring choker Wandering Chaos P 0 N
38206 Genuine Leather Rose Gold O-ring Choker Wandering Chaos P 0 N
38214 Genuine Leather Reusable Cross Nipple Pasties | Alternative Fetishwear for an Edgy Look Wandering Chaos P 0 N
38216 Genuine Leather Cat Skull Nipple Pasties for fetish, gothic, and alternative styles. Wandering Chaos P 0 N
38229 Custom Handmade Genuine Brown Leather Wraparound Harness - Versatile and Unique Wandering Chaos P 0 N
38255 Glow in the Dark Spider Nipple Pasteitjes | Fetisjkleding van echt leer voor edgy stijl Wandering Chaos P 0 N
38222 Black leather harness with black hardware - Gothic fetish accessory Wandering Chaos P 0 N
38245 Genuine Leather Gothic Skull Nipple Pasties | Edgy Accessory for Alternative Style Wandering Chaos P 0 N
38256 Genuine Leather Nipple Pasties with Glow in the Dark Skull | Edgy Accessory for Alternative and Gothic Style Wandering Chaos P 0 N
38230 Genuine Leather Simple Oring Choker Wandering Chaos P 0 N
38233 All Silver Metallic Leather Chest Harness | Handmade | Edgy | Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38242 Genuine Leather Belt Chest Harness Black Wandering Chaos P 0 N
38252 Holographic Genuine Leather Star Pasties - Reusable and Perfect for Raves" Wandering Chaos P 0 N
38219 Black genuine leather with black hardware O-ring choker Wandering Chaos P 0 N
38223 Genuine leather choker with Moth pendant Wandering Chaos P 0 N
38234 Handmade Red Leather Chest Harness - Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38237 Neon Green Genuine Leather Small O-Ring Choker Limited Edition Wandering Chaos P 0 N
38248 Genuine Leather Spirit Board Ouija Board Choker | Halloween Jewelry Wandering Chaos P 0 N
38210 Handmade Edgy Burgundy Red Leather With Rose Gold Chest Harness - Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38257 Genuine Leather Pasties with Triangle Bioshazard Logo | Reusable and Stylish Accessory for Parties and Photoshoots Wandering Chaos P 0 N
38200 Genuine Leather Double O-Ring Collar Choker in All Black - Edgy and Unique Accessory Wandering Chaos P 0 N
38204 Black Genuine Leather with Rainbow Hardware O-Ring Choker Wandering Chaos P 0 N
38224 Real leather choker | Double silver O-rings Wandering Chaos P 0 N
38227 Genuine Red Leather with Black Hardware O-Ring Choker *LIMITED EDITION* Wandering Chaos P 0 N
38228 Princess Genuine Leather Choker Wandering Chaos P 0 N
38246 Black Leather Choker with Ouija Pendant - Handmade - Halloween Jewelry Wandering Chaos P 0 N
38203 Bat-Shaped Pasties for Halloween Handmade Genuine Leather , Lingerie, and Alternative Fashion Wandering Chaos P 0 N
38202 Handmade Edgy Black Leather Chest Harness - Versatile Statement Piece Wandering Chaos P 0 N
38231 Genuine Black Leather Waist Harness - Versatile and Edgy - Handmade Wandering Chaos P 0 N
38208 All Black Large O-Ring Choker - Handmade with 100% Real Leather Wandering Chaos P 0 N
38215 Brat Genuine Leather Choker Wandering Chaos P 0 N
38239 All Black Single Ring Collar Choker - Handmade 100% Genuine Leather Jewelry for Edgy Style Wandering Chaos P 0 N
38253 Neon Green Eyelets Choker, Genuine Leather Limited Edition Wandering Chaos P 0 N
38218 Handmade genuine white leather wrap harness - Versatile and unique Wandering Chaos P 0 N
38205 All Black Body-Wrap Waist Harness | Genuine Leather | Custom Handmade Wandering Chaos P 0 N
38209 Handmade Genuine White Leather Waist Harness - Versatile and Edgy Wandering Chaos P 0 N
38221 Brown Genuine Leather with Black Hardware O-Ring Choker Wandering Chaos P 0 N
38225 Genuine leather choker with gothic cross pendant Wandering Chaos P 0 N
38226 Black and White Single Ring Collar Choker - Handmade 100% Genuine Leather Jewelry for Edgy Style Wandering Chaos P 0 N
38240 Dark Red with Rose Gold Genuine Leather Medium O-Ring Choker Wandering Chaos P 0 N
38241 Genuine Leather Choker with Double O-Ring - Black with Rainbow Hardware - Perfect for Raves and Festivals Wandering Chaos P 0 N
38251 Real Leather Choker | Haphazard white Oring Wandering Chaos P 0 N
38235 Handmade Lilac Leather Chest Harness - Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38244 Genuine Leather | Choker | Basic O-Ring | Handmade Wandering Chaos P 0 N
38249 Handmade Genuine Leather Choker with Red Coffin Pendant - Perfect for Halloween Enthusiasts Wandering Chaos P 0 N
38232 Black and Rose Gold Body-Wrap Waist Harness | Genuine Leather | Custom Handmade Wandering Chaos P 0 N
38211 All Black Small O-Ring Choker - handmade with 100% genuine leather Wandering Chaos P 0 N
38220 White Genuine Leather with Black Hardware O-Ring Choker Wandering Chaos P 0 N
38236 Handmade Barbie Pink Leather Chest Harness - Versatile Statement Piece *LIMITED EDITION* Wandering Chaos P 0 N
38238 Rainbow O-Ring Genuine Leather Choker - Handmade for Raves and Festivals Wandering Chaos P 0 N
38212 Echt lederen dubbele O-ring choker | Helemaal zwart | Alternatieve accessoires Wandering Chaos P 0 N
38243 Neon Green Biohazard Genuine Leather Pasties - Reusable, Easy to Apply, Perfect for Raves and Alternative Fashion Wandering Chaos P 0 N
38250 Genuine leather Choker | Black O-ring| Handmade Wandering Chaos P 0 N