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 (
    6780, 6689, 6769, 6686, 6688, 6785, 6690, 
    6670, 6799, 6687, 6773, 6795, 6777, 
    6784, 6691, 6807, 6770, 6781, 6783, 
    6776, 6797, 6774, 6790, 7315, 6746, 
    6808, 6731, 6792, 6732, 6744, 6756, 
    6782, 6673, 6714, 6789, 6796, 6694, 
    6778, 6793, 6674, 6718, 6816, 6775, 
    6809, 6715, 6758, 6766, 6768, 6717, 
    6771, 6813, 6716, 6772, 6669, 6671, 
    6812, 6761, 6672, 6760, 6767, 6815, 
    6759, 6668, 6762, 6765, 6810, 6757, 
    6764, 6811, 6763, 6814
  )

Query time 0.00109

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "99.41"
    },
    "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": 71,
          "rows_produced_per_join": 71,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (6780,6689,6769,6686,6688,6785,6690,6670,6799,6687,6773,6795,6777,6784,6691,6807,6770,6781,6783,6776,6797,6774,6790,7315,6746,6808,6731,6792,6732,6744,6756,6782,6673,6714,6789,6796,6694,6778,6793,6674,6718,6816,6775,6809,6715,6758,6766,6768,6717,6771,6813,6716,6772,6669,6671,6812,6761,6672,6760,6767,6815,6759,6668,6762,6765,6810,6757,6764,6811,6763,6814))",
          "cost_info": {
            "read_cost": "42.61",
            "eval_cost": "7.10",
            "prefix_cost": "49.71",
            "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": 71,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "17.75",
            "eval_cost": "7.10",
            "prefix_cost": "74.56",
            "data_read_per_join": "27K"
          },
          "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": 71,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "17.75",
            "eval_cost": "7.10",
            "prefix_cost": "99.41",
            "data_read_per_join": "7K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
656 group_variation_catalog_item 6731 0 760 PV-FBF13096F
656 group_variation_catalog_item 6780 0 744 PV-8E1C68DF5
656 group_variation_catalog_item 6790 0 743 PV-C31861758
656 group_variation_catalog_item 7315 0 759 PV-0F61F5D17