SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    125, 126, 128, 124, 127, 154, 150, 149, 
    167, 166, 156, 161, 165, 158, 160, 162, 
    159, 164, 157, 155, 153, 151, 152, 163
  )

Query time 0.00089

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "65.41"
    },
    "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": 132,
      "rows_produced_per_join": 132,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (125,126,128,124,127,154,150,149,167,166,156,161,165,158,160,162,159,164,157,155,153,151,152,163))",
      "cost_info": {
        "read_cost": "52.21",
        "eval_cost": "13.20",
        "prefix_cost": "65.41",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
51083 124
51084 124
22715 124
51082 124
51085 124
51081 124
51088 125
51087 125
22713 125
51086 125
51089 125
51090 125
51094 126
51092 126
51093 126
22714 126
51091 126
51095 126
51096 127
51097 127
51098 127
51100 127
51099 127
22716 127
51104 128
51103 128
22712 128
51105 128
51102 128
51101 128
51205 149
51204 149
51203 149
51202 149
125 149
51209 150
51208 150
51207 150
51206 150
124 150
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
51221 154
137 154
51224 154
51223 154
51222 154
51231 155
51230 155
51229 155
51228 155
51227 155
51226 155
51225 155
109 155
51232 156
12 156
51238 156
51237 156
51236 156
51235 156
51234 156
51233 156
51243 157
51242 157
51241 157
51240 157
51239 157
36 157
51246 158
51245 158
51244 158
35 158
51248 158
51247 158
51253 159
51252 159
51251 159
51250 159
51249 159
34 159
51256 160
51255 160
51254 160
33 160
51257 161
32 161
51258 161
51265 162
51264 162
51263 162
51262 162
51261 162
51260 162
51259 162
110 162
51272 163
51271 163
51270 163
51269 163
51268 163
51267 163
51266 163
145 163
51273 164
147 164
51277 164
51276 164
51275 164
51274 164
51281 165
51280 165
51279 165
51278 165
51282 165
7 165
51289 166
51288 166
51287 166
51286 166
51285 166
51284 166
51283 166
8 166
51294 167
51293 167
51292 167
51291 167
51290 167
94 167