SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    125, 154, 150, 162, 167, 157, 158, 161, 
    160, 159, 165, 164, 166, 156, 152, 163, 
    153
  )

Query time 0.00059

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "47.46"
    },
    "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": 96,
      "rows_produced_per_join": 96,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (125,154,150,162,167,157,158,161,160,159,165,164,166,156,152,163,153))",
      "cost_info": {
        "read_cost": "37.86",
        "eval_cost": "9.60",
        "prefix_cost": "47.46",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
51088 125
51087 125
22713 125
51086 125
51089 125
51090 125
51209 150
51208 150
51207 150
51206 150
124 150
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
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