SELECT 
  f.feature_id, 
  f.purpose, 
  p.product_id, 
  p.parent_product_id, 
  g.id, 
  g.code 
FROM 
  cscart_product_variation_group_features AS f 
  INNER JOIN cscart_product_variation_groups AS g ON f.group_id = g.id 
  INNER JOIN cscart_product_variation_group_products AS p ON f.group_id = p.group_id 
WHERE 
  p.product_id IN (
    82071, 82118, 82073, 82038, 149042, 
    82061, 81948, 82101, 82009, 81647, 
    82133, 82103, 81737, 81655, 82104, 
    81704, 81826, 81863, 81741, 81860, 
    81702, 82072, 81634, 81657, 81739, 
    81625, 82115, 81776, 82074, 81862, 
    81627, 82114, 82069, 81773, 81636, 
    81624, 82099, 82052, 82096, 81747, 
    82116, 82095
  )

Query time 0.00166

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "180.68"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 42,
          "rows_produced_per_join": 42,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "50.46",
            "eval_cost": "8.40",
            "prefix_cost": "58.86",
            "data_read_per_join": "672"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ],
          "attached_condition": "(`webmarco`.`p`.`product_id` in (82071,82118,82073,82038,149042,82061,81948,82101,82009,81647,82133,82103,81737,81655,82104,81704,81826,81863,81741,81860,81702,82072,81634,81657,81739,81625,82115,81776,82074,81862,81627,82114,82069,81773,81636,81624,82099,82052,82096,81747,82116,82095))"
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "webmarco.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 42,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "42.00",
            "eval_cost": "8.40",
            "prefix_cost": "109.26",
            "data_read_per_join": "16K"
          },
          "used_columns": [
            "id",
            "code"
          ]
        }
      },
      {
        "table": {
          "table_name": "f",
          "access_type": "ref",
          "possible_keys": [
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "webmarco.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 59,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "59.52",
            "eval_cost": "11.90",
            "prefix_cost": "180.68",
            "data_read_per_join": "6K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
549 group_catalog_item 81624 0 1075 PV-1098EDBE8
549 group_catalog_item 81625 0 1075 PV-1098EDBE8
549 group_catalog_item 81627 0 1075 PV-1098EDBE8
549 group_catalog_item 81634 0 1077 PV-F9ABCCBE2
549 group_catalog_item 81636 0 1077 PV-F9ABCCBE2
548 group_variation_catalog_item 81647 0 2009 PV-95604C89F
549 group_variation_catalog_item 81647 0 2009 PV-95604C89F
549 group_catalog_item 81655 0 1079 PV-2C8604979
549 group_catalog_item 81657 0 1079 PV-2C8604979
549 group_catalog_item 81702 0 1082 PV-A3F556C8F
549 group_catalog_item 81704 0 1082 PV-A3F556C8F
549 group_catalog_item 81737 0 1085 PV-0D2E7CD07
549 group_catalog_item 81739 0 1085 PV-0D2E7CD07
549 group_catalog_item 81773 0 1093 PV-1024B07FA
549 group_catalog_item 81776 0 1093 PV-1024B07FA
549 group_catalog_item 81826 0 1099 PV-108198BA5
549 group_catalog_item 81860 0 1099 PV-108198BA5
549 group_catalog_item 81862 0 1099 PV-108198BA5
549 group_catalog_item 81863 0 1099 PV-108198BA5
548 group_variation_catalog_item 81948 0 2004 PV-757F6FB0F
549 group_variation_catalog_item 81948 0 2004 PV-757F6FB0F
548 group_variation_catalog_item 82009 0 2007 PV-CB57F53DE
549 group_variation_catalog_item 82009 0 2007 PV-CB57F53DE
548 group_variation_catalog_item 82038 0 2003 PV-945FDEB21
549 group_variation_catalog_item 82038 0 2003 PV-945FDEB21
549 group_catalog_item 82052 0 1120 PV-249358FE2
549 group_catalog_item 82061 0 1120 PV-249358FE2
549 group_catalog_item 82069 0 1122 PV-809D1FD8A
549 group_catalog_item 82071 0 1122 PV-809D1FD8A
549 group_catalog_item 82072 0 1122 PV-809D1FD8A
549 group_catalog_item 82073 0 1122 PV-809D1FD8A
549 group_catalog_item 82074 0 1122 PV-809D1FD8A
549 group_catalog_item 82095 0 1123 PV-717853A52
549 group_catalog_item 82096 0 1123 PV-717853A52
549 group_catalog_item 82101 0 1124 PV-1455F4699
549 group_catalog_item 82103 0 1124 PV-1455F4699
549 group_catalog_item 82114 0 1127 PV-9130AFA78
549 group_catalog_item 82115 0 1127 PV-9130AFA78
549 group_catalog_item 82116 0 1127 PV-9130AFA78
548 group_variation_catalog_item 82118 0 2005 PV-FECD8562A
549 group_variation_catalog_item 82118 0 2005 PV-FECD8562A
548 group_variation_catalog_item 149042 0 2006 PV-4190F61A8
549 group_variation_catalog_item 149042 0 2006 PV-4190F61A8