SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (253, 250, 245, 251, 249, 247, 246)

Query time 0.00046

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9.86"
    },
    "table": {
      "table_name": "cscart_product_variation_group_products",
      "access_type": "range",
      "possible_keys": [
        "idx_group_id"
      ],
      "key": "idx_group_id",
      "used_key_parts": [
        "group_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 18,
      "rows_produced_per_join": 18,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (253,250,245,251,249,247,246))",
      "cost_info": {
        "read_cost": "8.06",
        "eval_cost": "1.80",
        "prefix_cost": "9.86",
        "data_read_per_join": "288"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
50998 245
50999 246
51000 247
51001 249
51002 250
51003 251
80 253
51398 253
51399 253