SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    260, 433, 195, 571, 305, 261, 364, 363, 
    404, 352, 418, 252, 155, 266, 383, 432, 
    373, 382, 366, 399, 688, 374, 304, 401, 
    365, 461, 463, 462
  )

Query time 0.00067

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "31.76"
    },
    "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": 55,
      "rows_produced_per_join": 55,
      "filtered": "100.00",
      "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_variation_group_products`.`group_id` in (260,433,195,571,305,261,364,363,404,352,418,252,155,266,383,432,373,382,366,399,688,374,304,401,365,461,463,462))",
      "cost_info": {
        "read_cost": "26.26",
        "eval_cost": "5.50",
        "prefix_cost": "31.76",
        "data_read_per_join": "880"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
2227 155
2226 155
2430 195
2431 195
2655 252
2698 260
2702 261
2703 261
2719 266
2728 266
2918 304
2919 304
2922 305
2923 305
3150 352
3151 352
3213 363
3214 363
3216 364
3215 364
3220 365
3221 365
3222 366
3223 366
3290 373
3289 373
3310 374
3309 374
3382 382
3383 382
3385 383
3386 383
3522 399
3523 399
3532 401
3533 401
3552 404
3553 404
3664 418
3665 418
3832 432
3831 432
3834 433
3835 433
3668 461
4102 461
4103 462
3682 462
4106 463
3684 463
5117 571
5116 571
5114 571
5804 688
6193 688