SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id 
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 cscart_categories.category_id IN (574) 
  AND companies.status IN ('A') 
  AND products.company_id = 1 
  AND (
    products.amount > 0 
    OR products.tracking = 'D'
  ) 
  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 = 1 
  AND products.parent_product_id = 0 
  AND products.product_type != 'D' 
GROUP BY 
  products.product_id 
ORDER BY 
  popularity.total desc, 
  products.product_id ASC 
LIMIT 
  0, 80

Query time 0.00540

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "82.18"
    },
    "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": "6K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ]
            }
          },
          {
            "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.10",
                "prefix_cost": "0.00",
                "data_read_per_join": "3K"
              },
              "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": 161,
              "rows_produced_per_join": 161,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "1.25",
                "eval_cost": "16.10",
                "prefix_cost": "17.35",
                "data_read_per_join": "2K"
              },
              "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": [
                "softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 8,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "40.25",
                "eval_cost": "0.81",
                "prefix_cost": "73.70",
                "data_read_per_join": "35K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "amount",
                "usergroup_ids",
                "tracking",
                "parent_product_id"
              ],
              "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = 1) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`amount` > 0) or (`softwarepirmam_hewadelivard_cscart_4`.`products`.`tracking` = 'D')) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`product_type` <> 'D'))"
            }
          },
          {
            "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": [
                "softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 8,
              "filtered": "99.93",
              "cost_info": {
                "read_cost": "2.01",
                "eval_cost": "0.80",
                "prefix_cost": "76.52",
                "data_read_per_join": "193"
              },
              "used_columns": [
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`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": [
                "softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 8,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.01",
                "eval_cost": "0.80",
                "prefix_cost": "79.33",
                "data_read_per_join": "257"
              },
              "used_columns": [
                "product_id",
                "total"
              ]
            }
          },
          {
            "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": [
                "softwarepirmam_hewadelivard_cscart_4.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 8,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "2.04",
                "eval_cost": "0.80",
                "prefix_cost": "82.18",
                "data_read_per_join": "36K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id
5474 Trisa Stand Blender “Mix ’n’ Joy” White Delivard Store P 0
5452 Trisa Stand Blender “Diners Edition” Black Delivard Store P 0
5453 Trisa Stand Blender “Mix Well” Delivard Store P 0
5446 Trisa Food Processor “Stir ’n’ Slice” Delivard Store P 0
5435 Trisa Meat Grinder "Vario Grinder" 6609.47 Delivard Store P 0
5454 Trisa Stand Blender “Mix 'n' Joy” Black Delivard Store P 0
5449 Trisa Stand Blender “Royal Crush” Delivard Store P 0
5444 Trisa Chopper “Quicky” Delivard Store P 0
5429 Trisa Meat Grinder for Kitchen Machine 6610/6623 Delivard Store P 0
5430 Trisa Vegetable Slicer for 6610/6623 Delivard Store P 0
5448 Trisa Stand Blender “Vario Power Mix” Delivard Store P 0
5436 Trisa Hand Mixer "Diners Edition" Blue Delivard Store P 0
5522 Trisa Ice Cream Maker - La Cremeria Delivard Store P 0
5451 Trisa Stand Blender “Diners Edition” White Delivard Store P 0
5478 Trisa Juicer “Pure Juice” Delivard Store P 0
5442 Trisa Stick Blender “Diners Edition” White Delivard Store P 0
5437 Trisa Hand Mixer “Diners Edition” Red Delivard Store P 0
5441 Trisa Stick Blender “Spiralizer” Delivard Store P 0
5434 Trisa Kitchen Machine "Mix Chef" White Delivard Store P 0
6219 Smeg Black Citrus Juicer Delivard Store P 0
6670 Kenwood JEM50 Juice Extractor – 700W, 75mm Wide Feed Tube, 2-Speed, Anti-Drip, Dishwasher-Safe Delivard Store P 0
5455 Trisa Nutri Blender “Energy Boost” Red Delivard Store P 0
5428 Trisa Kitchen Machine Kitchen Professional Delivard Store P 0
5440 Trisa Stick Blender “4Blade Mix” Delivard Store P 0
6664 Braun 2-in-1 Plastic Jug Blender JB0115 Delivard Store P 0
5438 Trisa Hand Mixer “Mixstar” (White) Delivard Store P 0
5443 Trisa Stick Blender “Diners Edition” Black Delivard Store P 0
5476 Trisa Juicer “Vital Juicer” Delivard Store P 0
6533 Braun PowerBlend 3 JB0153 Jug Blender Delivard Store P 0
6576 Braun Food Processor 8 in 1 FP0132 Delivard Store P 0
5447 Trisa Stand Blender “Master Mix” Delivard Store P 0
6795 Kenwood Premium Power Blender BLM91 Delivard Store P 0
5439 Trisa Hand Mixer “Turbo Mix” Delivard Store P 0
6218 Smeg Black blender Delivard Store P 0
6777 Kenwood Food Processor FDP03 – 750W, 2L Bowl, 1.8L Blender, 3 Slicing Discs, Dough Maker Delivard Store P 0
6244 Smeg Cream personal blender Delivard Store P 0
5475 Trisa Stand Blender “Smoothie Maker” Blue Delivard Store P 0
6691 Kenwood Blender Smoothie Maker BLP10 Delivard Store P 0
5433 Trisa Spaghetti Cutter for 6610 Delivard Store P 0
6797 Kenwood Easy Chop+ Chopper with Glass Bowl CHP62 Delivard Store P 0
5432 Trisa Fettuccine Cutter for 6610 Delivard Store P 0
6681 Braun MultiQuick 5 Vario Hand Blender MQ5235 Delivard Store P 0
6790 Kenwood Blender BLP15 Delivard Store P 0
6246 Smeg Hand mixer Cream Delivard Store P 0
6682 Braun MultiQuick 5 Hand Blender MQ5285 Delivard Store P 0
5431 Trisa Pasta Roller for 6610 Delivard Store P 0
6211 Smeg 3-in-1 Hand Blender With Accessories Cream Delivard Store P 0
6536 Braun MultiQuick 5 Hand Blender MQ535 Sauce Delivard Store P 0
6808 Kenwood HDP100 Triblade Hand Blender – 600W, 1 Speed + Turbo, White/Green Delivard Store P 0
6238 Smeg Cream Citrus Juicer Delivard Store P 0
6544 Braun Citrus Juicer MPZ 9 Delivard Store P 0
6547 Braun MultiQuick 7 Hand Blender MQ7087X Delivard Store P 0
6532 Braun PowerBlend 3 JB3273 Jug Blender Delivard Store P 0
6572 Braun MultiQuick Immersion Hand Blender MQ7035 Delivard Store P 0
6543 Braun IdentityCollection Spin Juicer J700 Delivard Store P 0
6534 Braun J500 Spin Juicer Delivard Store P 0
6545 Braun MultiQuick 3 Hand Blender MQ 3000 Delivard Store P 0
6684 Braun MultiQuick 9 Hand Blender MQ9187 Delivard Store P 0
6792 Kenwood Glass Blender with Mill BLP44 Delivard Store P 0
6666 Braun PurEase FP3233SI Compact Food Processor Delivard Store P 0
10012 Hausberg Electric Mixer HB-4120NG Delivard Store P 0
6571 Braun MultiMix 2-in-1 Hand and Stand Mixer HM1070 Delivard Store P 0
6551 Braun MultiQuick 7 Hand Blender MQ775 Delivard Store P 0
6683 Braun MultiQuick 1 Hand Blender MQ10202 Delivard Store P 0
6573 Braun MultiQuick 5 Vario Hand Blender MQ5245 Delivard Store P 0
6714 Kenwood KHH01 HomeBake Stand Mixer – 5 L Bowl, Planetary Mixing, 6 Speeds + Pulse Delivard Store P 0
6680 Braun MultiQuick Hand Blender MQ3048 Delivard Store P 0
6789 Kenwood BLM45 Power Cam Blender Delivard Store P 0
6796 Kenwood Blender Smoothie Maker BLP10 Delivard Store P 0
6694 Kenwood Blend X-Tract Compact Blender BLP41 Delivard Store P 0
6778 Kenwood Food Processor FDP301 – 800W, 2.1L Capacity, 1.2L Blender, 2 Speeds + Pulse Delivard Store P 0
6793 Kenwood Personal Blender BSP70 Delivard Store P 0
10420 Hausberg HB-7675NG – Hand Blender Delivard Store P 0
6575 Braun PurEase Black Food Processor FP301AI Delivard Store P 0
6718 Kenwood MG470 Meat Grinder – 1500 W, Fine/Medium/Coarse Plates, Sausage & Kebbe Maker Delivard Store P 0
6816 Kenwood JEP02 Juicer / Extractor – 800W, 2 Speeds, Multi-Functional Delivard Store P 0
6548 Braun MultiQuick 7 Hand Blender MQ7045X Delivard Store P 0
6809 Kenwood HDP104 Hand Blender – Medium Power, Multi-Purpose Delivard Store P 0
6715 Kenwood KHC29 Prospero+ Stand Mixer – 4.3L Bowl, 1000W, Planetary Mixing Delivard Store P 0
6717 Kenwood OWMG510 Food Grinder – 1600W Heavy-Duty Meat & Nut Mincer Delivard Store P 0