SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    2282, 2285, 2904, 2900, 2909, 2887, 2890, 
    2888, 2886, 8380, 7741, 10237, 10140, 
    10197, 10020, 10299, 8379, 10167, 10344, 
    10032, 10177, 10178, 10345, 8439, 10249, 
    10222, 10035, 10147, 10172, 10048, 
    10193, 10276, 10039, 10095, 10228, 
    10192, 10058, 8345, 10239, 10148, 10156, 
    10023, 10103, 10026, 10074, 10088, 
    10174, 10233, 10226, 10219, 10244, 
    10105, 10157, 10160, 10059, 9972, 10274, 
    10294, 10022, 10104, 10247, 10261, 
    9952, 10159, 10161, 10225, 10254, 10255, 
    10273, 9937, 9968, 10071, 10272, 9969, 
    10047, 10050, 10056, 10093, 10232, 
    10238
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00233

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "87.06"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 149,
        "rows_produced_per_join": 29,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2282,2285,2904,2900,2909,2887,2890,2888,2886,8380,7741,10237,10140,10197,10020,10299,8379,10167,10344,10032,10177,10178,10345,8439,10249,10222,10035,10147,10172,10048,10193,10276,10039,10095,10228,10192,10058,8345,10239,10148,10156,10023,10103,10026,10074,10088,10174,10233,10226,10219,10244,10105,10157,10160,10059,9972,10274,10294,10022,10104,10247,10261,9952,10159,10161,10225,10254,10255,10273,9937,9968,10071,10272,9969,10047,10050,10056,10093,10232,10238))",
        "cost_info": {
          "read_cost": "84.08",
          "eval_cost": "2.98",
          "prefix_cost": "87.06",
          "data_read_per_join": "714"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
2282 19000.00000000
2285 36000.00000000
2886 350000.00000000
2887 216000.00000000
2888 106000.00000000
2890 374000.00000000
2900 255000.00000000
2904 94000.00000000
2909 91000.00000000
7741 219000.00000000
8345 1300000.00000000
8379 118000.00000000
8380 104000.00000000
8439 75000.00000000
9937 63000.00000000
9952 21000.00000000
9968 28000.00000000
9969 75000.00000000
9972 112000.00000000
10020 150000.00000000
10022 10000.00000000
10023 15000.00000000
10026 18000.00000000
10032 33000.00000000
10035 75000.00000000
10039 50000.00000000
10047 21000.00000000
10048 33000.00000000
10050 9000.00000000
10056 35000.00000000
10058 22000.00000000
10059 194000.00000000
10071 60000.00000000
10074 70000.00000000
10088 60000.00000000
10093 21000.00000000
10095 402000.00000000
10103 6000.00000000
10104 203000.00000000
10105 63000.00000000
10140 766000.00000000
10147 25000.00000000
10148 75000.00000000
10156 33000.00000000
10157 52000.00000000
10159 25000.00000000
10160 9000.00000000
10161 89000.00000000
10167 10000.00000000
10172 37000.00000000
10174 82000.00000000
10177 13000.00000000
10178 118000.00000000
10192 80000.00000000
10193 67000.00000000
10197 25000.00000000
10219 16000.00000000
10222 755000.00000000
10225 15000.00000000
10226 9000.00000000
10228 584000.00000000
10232 22000.00000000
10233 1030000.00000000
10237 177000.00000000
10238 12000.00000000
10239 24000.00000000
10244 636000.00000000
10247 86000.00000000
10249 15000.00000000
10254 18000.00000000
10255 16000.00000000
10261 43000.00000000
10272 10000.00000000
10273 67000.00000000
10274 152000.00000000
10276 75000.00000000
10294 10000.00000000
10299 22000.00000000
10344 119000.00000000
10345 164000.00000000