SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    812, 819, 815, 820, 813, 818, 814, 772, 
    765, 817, 767, 768, 809, 771, 769, 773, 
    770, 766, 807, 958, 823, 798, 838, 840, 
    800, 799, 822, 839, 841, 816, 842, 821, 
    956, 969, 981, 966, 983, 982, 980, 867
  )

Query time 0.00096

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "68.06"
    },
    "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": 129,
      "rows_produced_per_join": 129,
      "filtered": "100.00",
      "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_variation_group_products`.`group_id` in (812,819,815,820,813,818,814,772,765,817,767,768,809,771,769,773,770,766,807,958,823,798,838,840,800,799,822,839,841,816,842,821,956,969,981,966,983,982,980,867))",
      "cost_info": {
        "read_cost": "55.16",
        "eval_cost": "12.90",
        "prefix_cost": "68.06",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
7608 765
7279 765
7609 766
7610 766
7611 766
7261 766
7612 767
7614 767
7613 767
7248 767
7615 768
7281 768
7283 769
7616 769
7285 770
7620 770
7619 770
7618 770
7617 770
7290 771
7622 771
7621 771
7624 772
7277 772
7623 772
7293 773
7625 773
5985 798
8264 798
5986 799
8265 799
5971 800
8266 800
8267 800
8474 807
8475 807
2441 807
2465 809
8478 809
2432 812
8485 812
8484 812
8483 812
2455 813
8488 813
8487 813
8486 813
8490 814
8489 814
2438 814
2459 815
8492 815
8491 815
8493 815
6590 816
8494 816
8495 817
1538 817
8496 817
1517 818
8498 818
8497 818
8500 819
1532 819
8502 819
8501 819
8499 819
8504 820
1528 820
8505 820
8503 820
6336 821
8506 821
6373 822
8509 822
8508 822
8507 822
4949 823
8510 823
8511 823
8513 823
8512 823
6459 838
8712 838
8711 838
8710 838
6447 839
8715 839
8714 839
8713 839
6451 840
8717 840
8716 840
6440 841
8720 841
8719 841
8718 841
6444 842
8722 842
8721 842
8947 867
8946 867
10122 956
10127 956
10128 956
10133 956
10135 958
10136 958
10137 958
10138 958
10198 966
10199 966
10200 966
10201 966
10217 969
10216 969
10309 969
10311 980
10310 980
10312 981
10315 981
10317 981
10313 982
10316 982
10318 982
10322 982
10314 983
10319 983
10320 983
10321 983