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 (
    2880, 2268, 3014, 4475, 3404, 3366, 3160, 
    3023, 4888, 3099, 2800, 1547, 1669, 
    3423, 5168, 2739, 2827, 1628, 2860, 
    3291
  )

Query time 0.00113

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "30.31"
    },
    "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": 22,
          "rows_produced_per_join": 22,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (2880,2268,3014,4475,3404,3366,3160,3023,4888,3099,2800,1547,1669,3423,5168,2739,2827,1628,2860,3291))",
          "cost_info": {
            "read_cost": "12.71",
            "eval_cost": "2.20",
            "prefix_cost": "14.91",
            "data_read_per_join": "352"
          },
          "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": 22,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "5.50",
            "eval_cost": "2.20",
            "prefix_cost": "22.61",
            "data_read_per_join": "8K"
          },
          "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": 22,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "5.50",
            "eval_cost": "2.20",
            "prefix_cost": "30.31",
            "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 2739 0 270 PV-77D87E1F9
656 group_variation_catalog_item 2800 0 281 PV-FC17602F8
656 group_variation_catalog_item 2860 0 294 PV-ADFB9210D
656 group_variation_catalog_item 2880 0 300 PV-DCDD9596C
656 group_variation_catalog_item 3014 0 316 PV-D31DB2773
656 group_variation_catalog_item 3023 0 319 PV-3BEDF7941
656 group_variation_catalog_item 3099 0 342 PV-D285F2095
656 group_variation_catalog_item 3160 0 355 PV-1F2BBFA7D
656 group_variation_catalog_item 3366 0 379 PV-F36A08376
656 group_variation_catalog_item 3404 0 386 PV-E9EB8EE32
656 group_variation_catalog_item 3423 0 388 PV-57CC314FE
656 group_variation_catalog_item 4475 0 523 PV-0AD5CCCE0
656 group_variation_catalog_item 4888 0 546 PV-524183760