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 (
    262860, 262924, 359697, 262345, 262231, 
    359715, 264355, 262341, 359780, 359723, 
    265053, 265021, 265024, 359705, 262230, 
    262232, 388351, 359792, 265023, 263008
  )

Query time 0.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "86.04"
    },
    "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": 20,
          "rows_produced_per_join": 20,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "24.03",
            "eval_cost": "4.00",
            "prefix_cost": "28.03",
            "data_read_per_join": "320"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ],
          "attached_condition": "(`webmarco`.`p`.`product_id` in (262860,262924,359697,262345,262231,359715,264355,262341,359780,359723,265053,265021,265024,359705,262230,262232,388351,359792,265023,263008))"
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "webmarco.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 20,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "20.00",
            "eval_cost": "4.00",
            "prefix_cost": "52.03",
            "data_read_per_join": "7K"
          },
          "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": [
            "webmarco.p.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 28,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "28.34",
            "eval_cost": "5.67",
            "prefix_cost": "86.04",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id purpose product_id parent_product_id id code
697 group_variation_catalog_item 262341 0 6719 PV-650675ABD
697 group_variation_catalog_item 262345 0 6964 PV-3084B73A4
940 group_variation_catalog_item 262345 0 6964 PV-3084B73A4
697 group_variation_catalog_item 262860 0 6893 PV-9FD456655
935 group_variation_catalog_item 262860 0 6893 PV-9FD456655
697 group_variation_catalog_item 262924 0 6963 PV-B40456F8F
940 group_variation_catalog_item 262924 0 6963 PV-B40456F8F
697 group_variation_catalog_item 264355 0 6962 PV-53B028067
697 group_variation_catalog_item 265021 0 7019 PV-5D442018E
947 group_catalog_item 265021 0 7019 PV-5D442018E
697 group_variation_catalog_item 265023 0 7019 PV-5D442018E
947 group_catalog_item 265023 0 7019 PV-5D442018E
697 group_variation_catalog_item 265024 0 7019 PV-5D442018E
947 group_catalog_item 265024 0 7019 PV-5D442018E
697 group_variation_catalog_item 265053 0 7025 PV-621C17AA0
948 group_variation_catalog_item 265053 0 7025 PV-621C17AA0
999 group_variation_catalog_item 359697 0 7591 PV-2B0FF0845
1050 group_variation_catalog_item 359697 0 7591 PV-2B0FF0845
999 group_variation_catalog_item 359705 0 7592 PV-F788F535A
1050 group_variation_catalog_item 359705 0 7592 PV-F788F535A
999 group_variation_catalog_item 359715 0 7594 PV-B1D9D0978
1052 group_variation_catalog_item 359715 0 7594 PV-B1D9D0978
999 group_variation_catalog_item 359723 0 7595 PV-5A2014012
1053 group_variation_catalog_item 359723 0 7595 PV-5A2014012
1054 group_variation_catalog_item 359723 0 7595 PV-5A2014012
999 group_variation_catalog_item 359780 0 7609 PV-D7775DA2D
1048 group_variation_catalog_item 359780 0 7609 PV-D7775DA2D
1049 group_catalog_item 359780 0 7609 PV-D7775DA2D
999 group_variation_catalog_item 359792 0 7609 PV-D7775DA2D
1048 group_variation_catalog_item 359792 0 7609 PV-D7775DA2D
1049 group_catalog_item 359792 0 7609 PV-D7775DA2D
697 group_variation_catalog_item 388351 0 8413 PV-0D11C44F8
1115 group_variation_catalog_item 388351 0 8413 PV-0D11C44F8