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 (
    4013, 4067, 4219, 4215, 4170, 4172, 4166, 
    4482, 4085, 4198, 4173, 4869, 4222, 
    4483, 4217, 4480, 4174, 4872, 4878, 
    3988, 4084, 4481, 4474, 4089, 4866, 
    4877, 4871, 4875, 4083, 4168, 4201, 
    4162, 4868, 4477, 4223, 4090, 4860, 
    4078, 4202, 4547, 4216, 4221, 4876, 
    4011, 4545, 4171, 4551, 4169, 4175, 
    4220, 4858, 4859, 4199, 4484, 4550, 
    4873, 4546, 4549, 4874, 4867, 4082, 
    4479, 4865, 4200, 4864, 4214, 4863
  )

Query time 0.00092

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "93.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": 67,
          "rows_produced_per_join": 67,
          "filtered": "100.00",
          "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (4013,4067,4219,4215,4170,4172,4166,4482,4085,4198,4173,4869,4222,4483,4217,4480,4174,4872,4878,3988,4084,4481,4474,4089,4866,4877,4871,4875,4083,4168,4201,4162,4868,4477,4223,4090,4860,4078,4202,4547,4216,4221,4876,4011,4545,4171,4551,4169,4175,4220,4858,4859,4199,4484,4550,4873,4546,4549,4874,4867,4082,4479,4865,4200,4864,4214,4863))",
          "cost_info": {
            "read_cost": "40.21",
            "eval_cost": "6.70",
            "prefix_cost": "46.91",
            "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": 67,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "16.75",
            "eval_cost": "6.70",
            "prefix_cost": "70.36",
            "data_read_per_join": "26K"
          },
          "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": 67,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "16.75",
            "eval_cost": "6.70",
            "prefix_cost": "93.81",
            "data_read_per_join": "6K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
656 group_variation_catalog_item 4067 0 457 PV-329CF6C19
656 group_variation_catalog_item 4085 0 458 PV-748E057C7