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 (
    86866, 91330, 86262, 86280, 86300, 86326, 
    91328, 86867, 86270, 86291, 86299, 
    86325, 91329, 86261, 86244, 86269, 
    86290, 86292, 86318, 86271, 87736, 
    86281, 86346, 86350, 91327, 91426, 
    86283, 87745, 86256, 86309, 86369, 
    86272, 86374, 86298, 86324, 86282, 
    86311, 86327, 86260, 86308, 91326, 
    86243, 87748, 86378, 86246, 86268, 
    86289, 86277, 87744, 91425, 86304, 
    86317, 91424, 87751, 91325, 86373, 
    86310, 86347, 86351, 87753, 86344, 
    86348, 86276, 86376, 86353, 86303, 
    86316, 86254, 86306, 86371, 86313, 
    86329, 86312, 86328, 86245, 86345, 
    86349, 87743, 86865, 87747, 86259, 
    86307, 91422, 91423, 87742, 86297, 
    86323, 86273, 86305, 86377, 86296, 
    86322, 86372, 87750, 86375, 87746
  )

Query time 0.00064

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 (86866,91330,86262,86280,86300,86326,91328,86867,86270,86291,86299,86325,91329,86261,86244,86269,86290,86292,86318,86271,87736,86281,86346,86350,91327,91426,86283,87745,86256,86309,86369,86272,86374,86298,86324,86282,86311,86327,86260,86308,91326,86243,87748,86378,86246,86268,86289,86277,87744,91425,86304,86317,91424,87751,91325,86373,86310,86347,86351,87753,86344,86348,86276,86376,86353,86303,86316,86254,86306,86371,86313,86329,86312,86328,86245,86345,86349,87743,86865,87747,86259,86307,91422,91423,87742,86297,86323,86273,86305,86377,86296,86322,86372,87750,86375,87746))",
          "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"
          ]
        }
      }
    ]
  }
}