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, 82009, 82101, 81647, 
    82133, 82103, 81737, 81655, 82104, 
    81704, 81826, 81863, 81741, 81860, 
    81702, 82072, 81634, 81657, 366904, 
    389637, 81739, 81625, 82115, 81776, 
    82074, 81611, 81862, 81627, 366903, 
    82114, 82069, 81773, 81636, 152085, 
    368409, 366900, 366968, 372041, 391071, 
    81624, 82099, 82052, 82096, 391278, 
    359756, 390761, 424699, 430332, 81747, 
    391070, 82116, 82095, 435209, 435210, 
    430344, 430333, 430573, 430346, 430347, 
    435211, 430329
  )

Query time 0.00162

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "288.23"
    },
    "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": 67,
          "rows_produced_per_join": 67,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "80.48",
            "eval_cost": "13.40",
            "prefix_cost": "93.88",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ],
          "attached_condition": "(`webmarco`.`p`.`product_id` in (82071,82118,82073,82038,149042,82061,81948,82009,82101,81647,82133,82103,81737,81655,82104,81704,81826,81863,81741,81860,81702,82072,81634,81657,366904,389637,81739,81625,82115,81776,82074,81611,81862,81627,366903,82114,82069,81773,81636,152085,368409,366900,366968,372041,391071,81624,82099,82052,82096,391278,359756,390761,424699,430332,81747,391070,82116,82095,435209,435210,430344,430333,430573,430346,430347,435211,430329))"
        }
      },
      {
        "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": 67,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "67.00",
            "eval_cost": "13.40",
            "prefix_cost": "174.28",
            "data_read_per_join": "26K"
          },
          "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": 94,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "94.95",
            "eval_cost": "18.99",
            "prefix_cost": "288.23",
            "data_read_per_join": "9K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
548 group_variation_catalog_item 81611 0 2011 PV-5264F6AA0
549 group_variation_catalog_item 81611 0 2011 PV-5264F6AA0
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
548 group_variation_catalog_item 368409 0 7775 PV-66BB9C660
860 group_variation_catalog_item 368409 0 7775 PV-66BB9C660