SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    620, 627, 628, 647, 661, 681, 666, 664, 
    648, 665, 649, 684, 662, 683, 682, 677, 
    668, 663, 685, 674
  )

Query time 0.00072

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.86"
    },
    "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": 113,
      "rows_produced_per_join": 113,
      "filtered": "100.00",
      "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_variation_group_products`.`group_id` in (620,627,628,647,661,681,666,664,648,665,649,684,662,683,682,677,668,663,685,674))",
      "cost_info": {
        "read_cost": "44.56",
        "eval_cost": "11.30",
        "prefix_cost": "55.86",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
6149 620
5685 620
6148 620
6150 620
6151 620
5721 627
5722 627
5723 627
5724 628
5725 628
5726 628
5944 647
5945 647
5946 647
5947 647
6119 647
6120 647
6121 647
6122 647
6123 647
6124 647
6125 647
5948 648
6128 648
6127 648
6126 648
6129 648
6130 648
6131 648
6132 648
6133 648
6134 648
6135 648
5952 649
6138 649
6137 649
6136 649
6139 649
6140 649
6141 649
6142 649
6143 649
6026 661
6025 661
6027 661
6028 661
6029 661
6030 661
6031 662
6032 662
6033 662
6034 662
6035 662
6036 663
6037 663
6038 663
6039 663
6040 663
6041 664
6042 664
6043 664
6044 664
6045 664
6046 664
6047 664
6048 665
6049 665
6050 665
6051 665
6052 665
6053 665
6054 666
6055 666
6056 666
6057 666
6058 666
6059 666
6069 668
6070 668
6071 668
6094 674
6095 674
6110 677
6111 677
5683 681
6152 681
6153 681
6154 681
6155 681
6156 682
6157 682
6158 682
6159 682
6164 683
6165 683
6166 683
6167 683
6168 683
6169 683
6170 683
6171 684
6172 684
6173 684
6174 684
6175 684
6176 684
6177 684
6178 685
6179 685
6180 685
6181 685
6182 685
6183 685
6184 685