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 (
    2775, 2767, 2562, 3548, 5151, 2786, 3408, 
    3744, 2733, 3359, 5126, 5133, 2759, 
    5137, 3375, 3517, 5143, 8696, 8243, 
    8617, 8570, 8703, 7873, 7871
  )

Query time 0.00109

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "33.61"
    },
    "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": 24,
          "rows_produced_per_join": 24,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (2775,2767,2562,3548,5151,2786,3408,3744,2733,3359,5126,5133,2759,5137,3375,3517,5143,8696,8243,8617,8570,8703,7873,7871))",
          "cost_info": {
            "read_cost": "14.41",
            "eval_cost": "2.40",
            "prefix_cost": "16.81",
            "data_read_per_join": "384"
          },
          "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": 24,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.00",
            "eval_cost": "2.40",
            "prefix_cost": "25.21",
            "data_read_per_join": "9K"
          },
          "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": 24,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "6.00",
            "eval_cost": "2.40",
            "prefix_cost": "33.61",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
656 group_variation_catalog_item 2562 0 220 PV-AD652926E
656 group_variation_catalog_item 2767 0 275 PV-38C75D30C
656 group_variation_catalog_item 2775 0 276 PV-41A16DED3
656 group_variation_catalog_item 2786 0 277 PV-E09942830
656 group_variation_catalog_item 3548 0 402 PV-F200A9D5C
656 group_variation_catalog_item 5126 0 574 PV-F19714385
656 group_variation_catalog_item 5133 0 576 PV-2055D9D9C
656 group_variation_catalog_item 5151 0 580 PV-E99B523A3
656 group_variation_catalog_item 7871 0 783 PV-EE694D453
656 group_variation_catalog_item 7873 0 784 PV-91BDE5A81
656 group_variation_catalog_item 8703 0 837 PV-B0844B896