SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    220, 155, 213, 146, 147, 153, 179, 225, 
    228, 227, 168, 221, 171, 151, 152, 172, 
    226, 163, 209, 222, 178, 197, 230, 199, 
    196, 252, 240, 200, 201, 203, 241, 239
  )

Query time 0.00068

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "48.96"
    },
    "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": 91,
      "rows_produced_per_join": 91,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (220,155,213,146,147,153,179,225,228,227,168,221,171,151,152,172,226,163,209,222,178,197,230,199,196,252,240,200,201,203,241,239))",
      "cost_info": {
        "read_cost": "39.86",
        "eval_cost": "9.10",
        "prefix_cost": "48.96",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
51194 146
51193 146
51192 146
51191 146
51190 146
51189 146
19 146
51201 147
51200 147
51199 147
51198 147
51197 147
51196 147
51195 147
131 147
51211 151
51210 151
111 151
51212 151
144 152
51215 152
51214 152
51213 152
51444 152
51445 152
51446 152
51447 152
51220 153
51219 153
51218 153
51217 153
51216 153
146 153
51448 153
51449 153
51231 155
51230 155
51229 155
51228 155
51227 155
51226 155
51225 155
109 155
51272 163
51271 163
51270 163
51269 163
51268 163
51267 163
51266 163
145 163
9 168
59 171
60 172
14 178
13 179
127 196
51325 196
63 197
50984 199
51450 199
51451 199
51329 200
51328 200
51327 200
50985 200
51331 201
51330 201
50986 201
51332 201
51339 203
51338 203
51337 203
51336 203
50988 203
113 209
51346 213
118 213
84 220
51347 221
85 221
6 222
61 225
51350 226
123 226
15 227
95 228
136 230
50992 239
51374 239
51375 239
42 240
51376 240
51377 240
51378 240
51379 240
51380 240
50993 241
51381 241
51382 241
134 252