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 (448) 
  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.00924

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.39"
    },
    "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": 73,
              "rows_produced_per_join": 73,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "0.70",
                "eval_cost": "7.30",
                "prefix_cost": "8.00",
                "data_read_per_join": "1K"
              },
              "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": 3,
              "filtered": "5.00",
              "cost_info": {
                "read_cost": "18.25",
                "eval_cost": "0.37",
                "prefix_cost": "33.55",
                "data_read_per_join": "16K"
              },
              "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": 3,
              "filtered": "99.93",
              "cost_info": {
                "read_cost": "0.91",
                "eval_cost": "0.36",
                "prefix_cost": "34.83",
                "data_read_per_join": "87"
              },
              "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": 3,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.91",
                "eval_cost": "0.36",
                "prefix_cost": "36.10",
                "data_read_per_join": "116"
              },
              "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": 3,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.93",
                "eval_cost": "0.36",
                "prefix_cost": "37.40",
                "data_read_per_join": "16K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id
3354 Belkin Screen Force Privacy for iPhone 13 Pro Max Delivard Store P 0
3308 Belkin Privacy Screen Protection for iPhone 16 Pro Max Delivard Store P 0
3397 Dviced Privacy tempered glass screen protector edge to edge for iPhone 16 Pro with applicator Delivard Store P 0
3841 Belkin Tempered Glass Privacy Treated Screen Protector for iPhone 12 / iPhone 12 Pro Delivard Store P 0
3212 BELKIN SCREENFORCE Screen Protector for iPhone 14 Pro Max Delivard Store P 0
3928 Anker iPhone 16 Pro Max Easy Fit Screen Protector Kit 2-Pack Delivard Store P 0
3660 Baykron Screen Protector Anti-blue Edge to Edge & Antibacterial with applicator for iPhone 13 Pro Max Delivard Store P 0
3828 Belkin Screen Protector 12 Pro Max GLASS Delivard Store P 0
3518 Belkin UltraGlass Treated Screen Protector for iPhone 14 Pro Max Delivard Store P 0
3918 Belkin True Privacy Screen Protector for MacBook Pro / MacBook Air 16" Delivard Store P 0
3400 Dviced Privacy tempered glass screen protector edge to edge for iPhone 16 Pro Max with applicator Delivard Store P 0
3232 Belkin TemperedGlass Treated Screen Protector for iPhone 16 Pro Max Delivard Store P 0
3740 Baykron Screen Protector Privacy with Applicator for iPhone 13 Pro Max Delivard Store P 0
3743 Baykron Screen Protector E2E with Applicator for iPhone 13 Pro Max Delivard Store P 0
3741 Baykron Screen Protector E2E with Applicator for iPhone 13 /13 Pro Delivard Store P 0
3440 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 14 Pro Delivard Store P 0
3441 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 14 Plus ( Expected to be compatible with iPhone 13 Pro Max ) Delivard Store P 0
10078 Caisles iPhone 15 Plus Black Screen Protector Delivard Store P 0
3768 Baykron Edge to Edge Screen Protector including Applicator for iPhone 12 / 12 Pro Delivard Store P 0
3747 Baykron 2D Screen Protector including Applicator for iPhone 12 Pro Max Delivard Store P 0
3406 Dviced Tempered glass screen protector edge to edge for iPhone 16 Pro MAX with applicator Duo Pack Delivard Store P 0
3827 Belkin Ultra Glass Treated Screen Protector for iPhone 12 / iPhone 12 Pro Delivard Store P 0
3738 Baykron Screen Protector Clear With Applicator for iPhone 13 Pro Max Delivard Store P 0
3403 Dviced Tempered glass screen protector edge to edge for iPhone 16 Pro with applicator Duo Pack Delivard Store P 0
3443 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 14 Pro Max Delivard Store P 0
3737 Baykron Screen Protector Clear With Applicator for iPhone 13 / 13 Pro Delivard Store P 0
3655 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 13 / 13 Pro Delivard Store P 0
3658 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 13 Pro Max Delivard Store P 0
3769 Baykron Edge to Edge Screen Protector including Applicator for iPhone 12 Pro Max Delivard Store P 0
3745 Baykron 2D Screen Protector including Applicator for iPhone 12 / 12 Pro Delivard Store P 0
3767 Baykron Privacy Screen Protector including Applicator for iPhone 12 Pro Max Delivard Store P 0
3950 Baykron 3-in-1 Package Case + Screen Protector + Camera Lens MagSafe for iPhone 15 Pro Delivard Store P 0
3659 Baykron Screen Protector Anti-blue Edge to Edge & Antibacterial with applicator for iPhone 13 / 13 Pro Delivard Store P 0
3766 Baykron Privacy Screen Protector including Applicator for iPhone 12 / 12 Pro Delivard Store P 0
3739 Baykron Screen Protector Privacy with Applicator for iPhone 13 / 13 Pro Delivard Store P 0
3444 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 14 ( Expected to be compatible with iPhone 13 / 13 Pro ) Delivard Store P 0
3785 Baykron Antibacterial Privacy Tempered Glass for iPhone 12 Mini Delivard Store P 0
3442 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 14 Pro Max Delivard Store P 0
3787 Baykron 3D Antibacterial Tempered Glass for iPhone 12 / iPhone 12 Pro Delivard Store P 0
3770 Baykron 2D Antibacterial Clear Tempered Glass for iPhone 12 Mini Delivard Store P 0
3447 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 14 Plus ( Expected to be compatible with iPhone 13 Pro Max ) Delivard Store P 0
3793 Baykron 2D Antibacterial Clear Tempered Glass for iPhone 12 Pro Max Delivard Store P 0
3450 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 13 Pro Max Delivard Store P 0
3772 Baykron 3D Antibacterial Tempered Glass for iPhone 12 Mini Delivard Store P 0
3795 Baykron Antibacterial Privacy Tempered Glass for iPhone 12 Pro Max Delivard Store P 0
3788 Baykron Antibacterial Privacy Tempered Glass for iPhone 12 / iPhone 12 Pro Delivard Store P 0
3439 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 14 ( Expected to be compatible with iPhone 13 / 13 Pro ) Delivard Store P 0
3446 Baykron Screen Protector Privacy Edge to Edge & Antibacterial with applicator for iPhone 14 Pro Delivard Store P 0
3794 Baykron 3D Antibacterial Tempered Glass for iPhone 12 Pro Max Delivard Store P 0
3948 Baykron 4 in 1 Package Case+Screen+Camera lens+ring for iPhone 15 Pro Delivard Store P 0
3449 Baykron Screen Protector Clear Edge to Edge & Antibacterial with applicator for iPhone 13 / 13 Pro Delivard Store P 0
3871 Baykron Screen Protector High Aluminium Tempered Glass 2.5D HD Privacy with Applicator for iPhone 15 Pro Delivard Store P 0
3786 Baykron 2D Antibacterial Clear Tempered Glass for iPhone 12 / iPhone 12 Pro Delivard Store P 0
3867 Baykron Screen Protector High Aluminium Tempered Glass 2.5D HD Clear with Applicator for iPhone 15 Pro Delivard Store P 0
3951 Baykron 3-in-1 Package Case + Screen Protector + Camera Lens MagSafe for iPhone 15 Pro Max Delivard Store P 0
3949 Baykron 4 in 1 Package Case+Screen+Camera lens+ring for iPhone 15 Pro Max Delivard Store P 0
3881 Baykron Screen Protector High Aluminium Tempered Glass 2.5D HD Privacy with Applicator for iPhone 15 Pro Max Delivard Store P 0
11629 Dviced Privacy Tempered Glass Screen Protector For iPhone 17 Pro With Dust-Free Applicator Delivard Store P 0
8597 Hama 213014 Privacy Screen Protector Glass for Apple iPhone 13 Mini – Pack of 1 Delivard Store P 0
8280 Hama 119454 Premium Screen Protection Glass for Apple iPad Pro 12.9-Inch – Clear Delivard Store P 0
8443 Hama 210925 Premium Screen Protector for iPad Air 13" (2024) Delivard Store P 0
8596 Hama 213005 Premium Crystal Glass Screen Protector for Apple iPhone 13 Mini Delivard Store P 0
11632 Dviced AntiHeat Tempered Glass Screen Protector For iPhone 17 Pro Max With Dust-Free Applicator Delivard Store P 0
8405 Hama 222788 Extreme Pro iPhone 16 Plus – Transparent Delivard Store P 0
8584 Hama 210928 Premium Display Protection Glass for Apple iPad Air 11" (2024) Delivard Store P 0
8588 Hama 222786 Extreme Protect Screen Glass for Apple iPhone 16 Pro, D3O Licensed Delivard Store P 0
8437 Hama 216306 Premium Screen Protection Glass for Apple iPad Air 10.9" (2020/2022) Delivard Store P 0
8515 Hama "Premium" Display Protection Glass for Apple iPad Pro 13" (2024) – 210931 Delivard Store P 0
8542 Hama 222785 Extreme Protect Mobile Phone Protection Glass for Apple iPhone 16 with Mounting Tool Delivard Store P 0
10446 Nothing Phone 1 Screen Protector Delivard Store P 0
10492 X-level IP 15 Pro 2.5D Screen Protector Skin Glass + Delivard Store P 0
11623 Dviced Tempered Glass Screen Protector For iPhone 17 With Dust-Free Applicator Delivard Store P 0
11624 Dviced Tempered Glass Screen Protector For iPhone Air With Dust-Free Applicator Delivard Store P 0
11625 Dviced Tempered Glass Screen Protector For iPhone 17 Pro With Dust-Free Applicator Delivard Store P 0
11626 Dviced Tempered Glass Screen Protector For iPhone 17 Pro Max With Dust-Free Applicator Delivard Store P 0
11627 Dviced Privacy Tempered Glass Screen Protector For iPhone 17 With Dust-Free Applicator Delivard Store P 0
11628 Dviced Privacy Tempered Glass Screen Protector For iPhone Air With Dust-Free Applicator Delivard Store P 0
11631 Dviced AntiHeat Tempered Glass Screen Protector For iPhone 17 Pro With Dust-Free Applicator Delivard Store P 0