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 (
    83938, 84082, 82497, 90169, 90174, 90175, 
    91472, 90206, 90217, 90193, 84050, 
    84058, 90226, 82495, 90237, 90242, 
    90253, 90261, 91471, 90186, 85961, 
    82498, 86856, 89547, 89533, 90252, 
    90260, 82493, 82435, 87375, 85606, 
    82496, 85610, 89539, 85605, 90251, 
    90259, 90279, 90287, 90176, 90192, 
    90309, 90236, 90241, 82494, 87372, 
    89543, 82487, 85960, 89532, 90235, 
    90240, 89540, 82492, 90225, 90183, 
    90234, 90239, 87371, 90224, 90199, 
    89546, 89538, 90173, 90308, 89554, 
    90223, 90278, 90286, 91481, 90198, 
    85620, 85634, 91480, 89544, 85618, 
    89542, 85616, 85619, 85633, 90222, 
    82491, 89563, 90221, 90197, 85617, 
    82490, 85615, 90205, 90216, 90220, 
    82489, 90191, 90277, 91478, 91885
  )

Query time 0.00073

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.05"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "f",
          "access_type": "ALL",
          "possible_keys": [
            "idx_group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.35",
            "data_read_per_join": "104"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.70",
            "data_read_per_join": "400"
          },
          "used_columns": [
            "id",
            "code"
          ]
        }
      },
      {
        "table": {
          "table_name": "p",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "index_condition": "(`nuie_scalesta_net`.`p`.`product_id` in (83938,84082,82497,90169,90174,90175,91472,90206,90217,90193,84050,84058,90226,82495,90237,90242,90253,90261,91471,90186,85961,82498,86856,89547,89533,90252,90260,82493,82435,87375,85606,82496,85610,89539,85605,90251,90259,90279,90287,90176,90192,90309,90236,90241,82494,87372,89543,82487,85960,89532,90235,90240,89540,82492,90225,90183,90234,90239,87371,90224,90199,89546,89538,90173,90308,89554,90223,90278,90286,91481,90198,85620,85634,91480,89544,85618,89542,85616,85619,85633,90222,82491,89563,90221,90197,85617,82490,85615,90205,90216,90220,82489,90191,90277,91478,91885))",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "1.05",
            "data_read_per_join": "16"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ]
        }
      }
    ]
  }
}