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 (
    5770, 461, 40807, 1742, 5763, 4268, 4267, 
    48845, 5758, 47274, 5775, 40802, 1752, 
    40893, 41616, 5764, 5771, 5760, 5773, 
    1758, 5757, 41226, 5768, 40810, 1744, 
    33721, 4303, 5766, 1743, 1753, 35475, 
    48851
  )

Query time 0.00158

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 100,
          "index_condition": "p.product_id in (5770,461,40807,1742,5763,4268,4267,48845,5758,47274,5775,40802,1752,40893,41616,5764,5771,5760,5773,1758,5757,41226,5768,40810,1744,33721,4303,5766,1743,1753,35475,48851)"
        }
      },
      {
        "table": {
          "table_name": "f",
          "access_type": "ref",
          "possible_keys": ["idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["id"],
          "ref": ["dev_db.p.group_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
20330 group_variation_catalog_item 4267 0 12787 PV-5CDF8AA46
20329 group_variation_catalog_item 4268 0 12786 PV-36328EE4D
20320 group_variation_catalog_item 4303 0 12777 PV-27791D205
23512 group_variation_catalog_item 33721 0 15644 PV-FF4839DFB
24141 group_variation_catalog_item 40807 0 16349 PV-49AC5FA8E
24143 group_variation_catalog_item 40810 0 16351 PV-E30D69828
24166 group_variation_catalog_item 40893 0 16370 PV-594E839AC
24199 group_variation_catalog_item 41226 0 16454 PV-AE513B80E
24242 group_variation_catalog_item 41616 0 16500 PV-F5962BB9E
24767 group_variation_catalog_item 47274 0 17017 PV-4A97995E7