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 (
    6367, 6545, 47904, 4140, 28157, 6543, 
    6363, 1473, 47652, 61, 62, 34548, 47900, 
    47901, 28158, 49185, 47897, 44951, 
    47668, 44751, 47664, 6544, 47930, 47665, 
    47667, 48951, 47666, 49106, 49221, 
    49107, 49209, 50142
  )

Query time 0.00317

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 (6367,6545,47904,4140,28157,6543,6363,1473,47652,61,62,34548,47900,47901,28158,49185,47897,44951,47668,44751,47664,6544,47930,47665,47667,48951,47666,49106,49221,49107,49209,50142)"
        }
      },
      {
        "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
24570 group_variation_catalog_item 44751 0 16798 PV-7FC93C387
24571 group_variation_catalog_item 44951 0 16799 PV-C7710B1CE
24836 group_variation_catalog_item 47652 0 17087 PV-F984EA7C4
24848 group_variation_catalog_item 47897 0 17102 PV-18C3D0756
24858 group_variation_catalog_item 47930 0 17112 PV-CD410D7FF
25006 group_variation_catalog_item 49221 0 17249 PV-385C1E534
25115 group_variation_catalog_item 50142 0 17332 PV-93223F380