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 (
    87367, 87366, 87365, 87354, 87364, 82550, 
    87352, 87353, 87358, 87378, 82548, 
    87380, 87357, 87376, 87377, 87374, 
    87379, 82509, 87373, 82508, 82531, 
    87369, 82541, 82440, 87368, 87363, 
    82539, 82530, 82439, 87362, 87361, 
    87356, 82540, 82444, 87360, 82537, 
    87355, 87419, 82523, 82538, 82525, 
    87417, 82438, 87418, 82522, 82547, 
    82443, 91482, 82437, 87416, 82532, 
    82545, 87415, 82524, 87414, 89565, 
    82517, 82546, 89571, 87413, 91476, 
    82516, 82544, 89559, 89569, 87412, 
    82515, 87359, 91475, 82514, 82511, 
    89564, 82485, 82510, 89555, 82499, 
    91473, 82436, 87381, 85611, 82497, 
    91472, 82495, 91471, 82498, 89547, 
    89533, 82493, 82435, 87375, 85606, 
    82496, 85610, 89539, 85605, 82494
  )

Query time 0.00069

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 (87367,87366,87365,87354,87364,82550,87352,87353,87358,87378,82548,87380,87357,87376,87377,87374,87379,82509,87373,82508,82531,87369,82541,82440,87368,87363,82539,82530,82439,87362,87361,87356,82540,82444,87360,82537,87355,87419,82523,82538,82525,87417,82438,87418,82522,82547,82443,91482,82437,87416,82532,82545,87415,82524,87414,89565,82517,82546,89571,87413,91476,82516,82544,89559,89569,87412,82515,87359,91475,82514,82511,89564,82485,82510,89555,82499,91473,82436,87381,85611,82497,91472,82495,91471,82498,89547,89533,82493,82435,87375,85606,82496,85610,89539,85605,82494))",
          "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"
          ]
        }
      }
    ]
  }
}