SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  products.amount, 
  IF(
    shared_descr.product_id IS NOT NULL, 
    shared_descr.product, descr1.product
  ) as product, 
  companies.company as company_name, 
  variation_group_products.group_id AS variation_group_id, 
  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_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_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id 
  AND shared_descr.company_id = 1 
  AND shared_descr.lang_code = 'en' 
  INNER JOIN cscart_product_variation_group_products AS variation_group_products ON variation_group_products.product_id = products.product_id 
WHERE 
  1 
  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 variation_group_products.group_id IN (
    895, 896, 915, 948, 901, 889, 890, 881, 
    882, 883, 884
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.02156

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "79.63"
    },
    "ordering_operation": {
      "using_filesort": false,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "companies",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY"
              ],
              "rows_examined_per_scan": 2,
              "rows_produced_per_join": 1,
              "filtered": "50.00",
              "cost_info": {
                "read_cost": "0.62",
                "eval_cost": "0.10",
                "prefix_cost": "0.72",
                "data_read_per_join": "5K"
              },
              "used_columns": [
                "company_id",
                "status",
                "company"
              ],
              "attached_condition": "(`gaseus`.`companies`.`status` = 'A')"
            }
          },
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY",
                "c_status",
                "p_category_id"
              ],
              "rows_examined_per_scan": 46,
              "rows_produced_per_join": 1,
              "filtered": "4.00",
              "using_join_buffer": "hash join",
              "cost_info": {
                "read_cost": "5.17",
                "eval_cost": "0.18",
                "prefix_cost": "6.07",
                "data_read_per_join": "7K"
              },
              "used_columns": [
                "category_id",
                "storefront_id",
                "usergroup_ids",
                "status"
              ],
              "attached_condition": "(((`gaseus`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`cscart_categories`.`usergroup_ids`))) and (`gaseus`.`cscart_categories`.`status` in ('A','H')) and (`gaseus`.`cscart_categories`.`storefront_id` in (0,1)))"
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "pt"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "category_id"
              ],
              "key_length": "3",
              "ref": [
                "gaseus.cscart_categories.category_id"
              ],
              "rows_examined_per_scan": 83,
              "rows_produced_per_join": 152,
              "filtered": "100.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "1.40",
                "eval_cost": "15.27",
                "prefix_cost": "22.75",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "product_id",
                "category_id"
              ]
            }
          },
          {
            "table": {
              "table_name": "variation_group_products",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "idx_group_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "gaseus.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 7,
              "filtered": "5.00",
              "using_index": true,
              "cost_info": {
                "read_cost": "38.18",
                "eval_cost": "0.76",
                "prefix_cost": "76.20",
                "data_read_per_join": "122"
              },
              "used_columns": [
                "product_id",
                "group_id"
              ],
              "attached_condition": "(`gaseus`.`variation_group_products`.`group_id` in (895,896,915,948,901,889,890,881,882,883,884))"
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "status"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id"
              ],
              "key_length": "3",
              "ref": [
                "gaseus.products_categories.product_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "9.96",
              "cost_info": {
                "read_cost": "1.91",
                "eval_cost": "0.08",
                "prefix_cost": "78.87",
                "data_read_per_join": "4K"
              },
              "used_columns": [
                "product_id",
                "product_type",
                "status",
                "company_id",
                "amount",
                "usergroup_ids",
                "parent_product_id"
              ],
              "attached_condition": "((`gaseus`.`products`.`company_id` = `gaseus`.`companies`.`company_id`) and ((`gaseus`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`products`.`usergroup_ids`))) and (`gaseus`.`products`.`status` = 'A'))"
            }
          },
          {
            "table": {
              "table_name": "shared_descr",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY",
                "product_id",
                "company_id"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "product_id",
                "lang_code",
                "company_id"
              ],
              "key_length": "13",
              "ref": [
                "gaseus.products_categories.product_id",
                "const",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.22",
                "eval_cost": "0.08",
                "prefix_cost": "79.17",
                "data_read_per_join": "2K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "company_id",
                "product"
              ]
            }
          },
          {
            "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": [
                "gaseus.products_categories.product_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.38",
                "eval_cost": "0.08",
                "prefix_cost": "79.63",
                "data_read_per_join": "3K"
              },
              "used_columns": [
                "product_id",
                "lang_code",
                "product"
              ]
            }
          }
        ]
      }
    }
  }
}

Result

product_id amount product company_name variation_group_id product_type parent_product_id
12928 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 P 0
12929 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13134 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13135 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13136 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13137 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13138 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13139 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13140 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13141 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13142 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13143 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13144 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13145 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13146 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13147 0 Single-cylinder manifold station Vulkan LabLine SE 10/300 Gaseus 901 V 12928
13148 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 915 P 0
13149 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 915 V 13148
13150 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13151 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13152 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13153 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 P 0
13154 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13155 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13156 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13157 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13158 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13159 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13160 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
13161 0 Single-cylinder manifold station Vulkan LabLine SE 10/2 300 Gaseus 948 V 13153
12926 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 P 0
12927 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12930 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12931 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12932 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12933 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12934 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12935 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12936 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12937 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12938 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12939 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12940 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12941 0 Single-cylinder manifold station Vulkan TecLine SE10/300 Gaseus 889 V 12926
12942 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 P 0
12943 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12944 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12945 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12946 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12947 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12948 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12949 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12950 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12951 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12952 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12953 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12954 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12955 0 Single-cylinder manifold station Vulkan TecLine SE20/300 Gaseus 890 V 12942
12988 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 P 0
12989 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12990 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12991 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12992 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12993 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12994 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12995 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12996 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12997 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12998 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
12999 0 Single-bundle manifold station Vulkan TecLine EB75/300 Gaseus 895 V 12988
13000 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 P 0
13001 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13002 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13003 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13004 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13005 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13006 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13007 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13008 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13009 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13010 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13011 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13012 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
13013 0 Single-bundle manifold station Vulkan TecLine EB80/300 Gaseus 896 V 13000
12850 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 P 0
12851 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12852 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12853 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12854 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12855 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12856 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12857 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12858 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12859 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12860 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12861 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12862 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12863 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12864 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12865 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12866 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12867 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12868 0 Tapping point regulator Vulkan LabLine E10 Gaseus 881 V 12850
12869 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 P 0
12870 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12871 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12872 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12873 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12874 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12875 0 Tapping point regulator Vulkan LabLine E10F Gaseus 882 V 12869
12876 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 P 0
12877 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12878 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12879 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12880 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12881 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12882 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12883 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12884 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12885 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12886 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12887 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12888 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12889 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12890 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12891 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12892 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12893 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12894 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12895 0 Tapping point regulator Vulkan TecLine E10 Gaseus 883 V 12876
12896 0 Tapping point regulator Vulkan TecLine E10F Gaseus 884 P 0
12897 0 Tapping point regulator Vulkan TecLine E10F Gaseus 884 V 12896
12898 0 Tapping point regulator Vulkan TecLine E10F Gaseus 884 V 12896
12899 0 Tapping point regulator Vulkan TecLine E10F Gaseus 884 V 12896