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 (
    5968, 5920, 7473, 7475, 7477, 7478, 7472, 
    7476, 7505, 7468, 7469, 7471, 7470, 
    7474, 5860, 5774, 5778, 5764, 5872, 
    5578, 5873, 5581, 5763, 5855, 5921, 
    5559, 5582, 5563, 5577, 5789, 5777, 
    5787, 5913, 5583, 5560, 5562, 5916, 
    5579, 5584, 5773, 5865, 5867, 6334, 
    5786, 6493, 5963, 5863, 6345, 6333, 
    6386, 5964, 5911, 5965, 6402, 6403, 
    6577, 6342, 6578, 6585, 6582, 6583, 
    9014, 6579, 6496, 11456, 6404, 10328, 
    10326, 10327, 10469, 10541, 10969
  )

Query time 0.00136

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "100.81"
    },
    "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": 72,
          "rows_produced_per_join": 72,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (5968,5920,7473,7475,7477,7478,7472,7476,7505,7468,7469,7471,7470,7474,5860,5774,5778,5764,5872,5578,5873,5581,5763,5855,5921,5559,5582,5563,5577,5789,5777,5787,5913,5583,5560,5562,5916,5579,5584,5773,5865,5867,6334,5786,6493,5963,5863,6345,6333,6386,5964,5911,5965,6402,6403,6577,6342,6578,6585,6582,6583,9014,6579,6496,11456,6404,10328,10326,10327,10469,10541,10969))",
          "cost_info": {
            "read_cost": "43.21",
            "eval_cost": "7.20",
            "prefix_cost": "50.41",
            "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": 72,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "18.00",
            "eval_cost": "7.20",
            "prefix_cost": "75.61",
            "data_read_per_join": "28K"
          },
          "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": 72,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "18.00",
            "eval_cost": "7.20",
            "prefix_cost": "100.81",
            "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 5763 0 691 PV-0D964248A
656 group_variation_catalog_item 5764 0 632 PV-4B6D8F9C0
656 group_variation_catalog_item 5774 0 651 PV-171AA936D
656 group_variation_catalog_item 5778 0 652 PV-EEF4FE129
656 group_variation_catalog_item 5860 0 639 PV-670FF697A
656 group_variation_catalog_item 5913 0 644 PV-4AE196AB0
656 group_variation_catalog_item 5916 0 645 PV-824AC91C6
656 group_variation_catalog_item 6577 0 727 PV-10E1D72F5
656 group_variation_catalog_item 6578 0 728 PV-5AB2227A4
656 group_variation_catalog_item 9014 0 871 PV-37C2FABAB
656 group_variation_catalog_item 11456 0 1144 PV-A769B9D85