SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'en' 
  AND gp.group_id IN (
    7641, 7642, 7632, 7639, 7612, 7631, 7630, 
    7640, 7646, 7636, 7635, 7638, 7649, 
    7650, 7651, 7645, 7629, 7643, 7611, 
    7620
  )

Query time 0.00176

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "293.56"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 20,
          "rows_produced_per_join": 20,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "5.03",
            "eval_cost": "4.00",
            "prefix_cost": "9.03",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ],
          "attached_condition": "(`webmarco`.`gpf`.`group_id` in (7641,7642,7632,7639,7612,7631,7630,7640,7646,7636,7635,7638,7649,7650,7651,7645,7629,7643,7611,7620))"
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "webmarco.gpf.group_id"
          ],
          "rows_examined_per_scan": 9,
          "rows_produced_per_join": 188,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "20.19",
            "eval_cost": "37.76",
            "prefix_cost": "66.98",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "fpl",
          "used_key_parts": [
            "feature_id",
            "product_id",
            "lang_code"
          ],
          "key_length": "12",
          "ref": [
            "webmarco.gpf.feature_id",
            "webmarco.gp.product_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 188,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "188.82",
            "eval_cost": "37.76",
            "prefix_cost": "293.56",
            "data_read_per_join": "146K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
860 366688 64062 7611
860 366689 64477 7611
649 366690 65025 7612
649 366691 62608 7612
649 366692 62609 7612
649 366693 62610 7612
860 366729 64062 7620
860 366730 64477 7620
649 366754 62608 7629
649 366755 62609 7629
649 366760 62608 7630
649 366761 62609 7630
649 366762 62610 7630
649 366765 65025 7631
649 366766 62608 7631
649 366767 62609 7631
649 366768 62610 7631
649 366771 65025 7632
649 366772 62608 7632
649 366773 62609 7632
649 366774 62610 7632
649 366775 62611 7632
649 366776 62612 7632
860 366791 64055 7635
860 366792 64062 7635
860 366793 64477 7635
860 366794 64539 7635
649 366796 65025 7636
649 366797 62608 7636
649 366798 62609 7636
649 366809 65025 7638
649 366810 62608 7638
649 366811 62609 7638
649 366812 62610 7638
649 366813 62611 7638
649 366814 62612 7638
649 366815 65025 7639
649 366816 62608 7639
649 366817 62609 7639
649 366818 62610 7639
649 366819 62611 7639
649 366820 62612 7639
649 366821 65025 7640
649 366827 65025 7641
649 366828 62608 7641
649 366829 62609 7641
649 366830 62610 7641
649 366831 62611 7641
649 366832 62612 7641
649 366833 65025 7642
649 366834 62608 7642
649 366835 62609 7642
649 366836 62610 7642
649 366837 62611 7642
649 366838 62612 7642
649 366841 62609 7643
649 366842 62610 7643
649 366843 62611 7643
649 366844 62612 7643
649 366851 65025 7645
649 366852 62608 7645
649 366853 62609 7645
649 366854 62610 7645
649 366857 65025 7646
649 366858 62608 7646
649 366859 62609 7646
649 366860 62610 7646
649 366861 62611 7646
649 366862 62612 7646
649 366875 65025 7649
649 366876 62608 7649
649 366877 62609 7649
649 366878 62610 7649
649 366879 62611 7649
649 366880 62612 7649
649 366881 65025 7650
649 366882 62608 7650
649 366883 62609 7650
649 366884 62610 7650
649 366885 62611 7650
649 366886 62612 7650
649 366888 65025 7651
649 366889 62608 7651
649 366890 62609 7651
649 366891 62610 7651
649 366892 62611 7651
649 366893 62612 7651