SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    1162, 1096, 1142, 1151, 1170, 1064, 1105, 
    1110, 1132, 1153, 1138, 1154, 1183, 
    1117, 1134, 1166, 1185, 1125, 1171, 
    1128, 1169, 1087, 1147, 1075, 1113, 
    1145, 1124, 1080, 1143, 1141, 1116, 
    1167, 1094, 1118, 1058, 1063, 1051
  )

Query time 0.00178

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "47.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": 86,
      "rows_produced_per_join": 86,
      "filtered": "100.00",
      "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_variation_group_products`.`group_id` in (1162,1096,1142,1151,1170,1064,1105,1110,1132,1153,1138,1154,1183,1117,1134,1166,1185,1125,1171,1128,1169,1087,1147,1075,1113,1145,1124,1080,1143,1141,1116,1167,1094,1118,1058,1063,1051))",
      "cost_info": {
        "read_cost": "39.36",
        "eval_cost": "8.60",
        "prefix_cost": "47.96",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
10991 1051
10992 1051
11025 1058
11024 1058
11081 1063
11080 1063
11082 1063
11086 1064
11085 1064
11137 1075
11136 1075
11152 1080
11153 1080
11236 1087
11237 1087
11300 1094
11301 1094
11306 1096
11307 1096
11337 1105
11338 1105
11348 1110
11349 1110
11352 1113
11355 1113
11360 1116
11361 1116
11362 1117
11363 1117
11364 1118
11365 1118
11388 1124
11389 1124
11390 1125
11391 1125
11399 1128
11400 1128
11411 1132
11412 1132
11413 1132
11416 1134
11415 1134
11414 1134
11417 1134
11430 1138
11431 1138
11439 1141
11441 1141
11445 1141
11446 1142
11447 1142
11448 1142
11453 1143
11454 1143
11455 1143
11458 1145
11460 1145
11462 1147
11463 1147
11472 1151
11474 1151
11475 1151
11477 1153
11478 1153
11480 1153
11479 1154
11481 1154
11508 1162
11509 1162
11520 1166
11521 1166
11522 1167
11523 1167
11530 1169
11532 1169
11531 1170
11533 1170
11534 1170
11535 1171
11536 1171
11598 1183
11599 1183
11600 1183
11633 1185
11634 1185
11635 1185
11636 1185