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 (
    8007, 7724, 7897, 7952, 7959, 7972, 7974, 
    8009, 8010, 7948, 7949, 7953, 7962, 
    7964, 7968, 8005, 8013, 7231, 7249, 
    7391, 7947, 7955, 7957, 7958, 7975, 
    7992, 7024, 7355, 7893, 7954, 7970, 
    7977, 7196, 7350, 8080, 7227, 7324, 
    7500, 7956, 8006, 7022, 7080, 7191, 
    7250, 7320, 7340, 7352, 7888, 8110, 
    8192, 8364, 7021, 7192, 7256, 7506, 
    7850, 7230, 7319, 7343, 7386, 7900, 
    8214, 7189, 7226, 7348, 7356, 7390, 
    7965, 7232, 7237, 7344, 7383, 7389, 
    7887, 7894, 8207, 9909, 7193, 7262, 
    8069
  )

Query time 0.00106

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "112.01"
    },
    "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": 80,
          "rows_produced_per_join": 80,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (8007,7724,7897,7952,7959,7972,7974,8009,8010,7948,7949,7953,7962,7964,7968,8005,8013,7231,7249,7391,7947,7955,7957,7958,7975,7992,7024,7355,7893,7954,7970,7977,7196,7350,8080,7227,7324,7500,7956,8006,7022,7080,7191,7250,7320,7340,7352,7888,8110,8192,8364,7021,7192,7256,7506,7850,7230,7319,7343,7386,7900,8214,7189,7226,7348,7356,7390,7965,7232,7237,7344,7383,7389,7887,7894,8207,9909,7193,7262,8069))",
          "cost_info": {
            "read_cost": "48.01",
            "eval_cost": "8.00",
            "prefix_cost": "56.01",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "softwarepirmam_hewadelivard_cscart_4.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 80,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "20.00",
            "eval_cost": "8.00",
            "prefix_cost": "84.01",
            "data_read_per_join": "31K"
          },
          "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": [
            "softwarepirmam_hewadelivard_cscart_4.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 80,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "20.00",
            "eval_cost": "8.00",
            "prefix_cost": "112.01",
            "data_read_per_join": "8K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
682 group_variation_catalog_item 7506 0 801 PV-002835CA7
682 group_variation_catalog_item 7992 0 793 PV-AD51EB6AA