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 (
    1128285, 1128289, 1129605, 1129852, 
    525901, 1128299, 1199097, 2055715, 
    1718556, 1128294, 1129606, 1444124, 
    1128290, 1199098, 1373431, 1722316, 
    1373435, 1373432, 1128108, 1199099, 
    1199095, 1129597, 1128097, 1129869, 
    1129863, 1128078, 1193387, 1198929, 
    1198866, 1129865, 1129867, 1198921, 
    1129873, 1129857, 1129861, 1129864, 
    2538988
  ) 
  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.00317

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "86.13"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 74,
        "rows_produced_per_join": 74,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "78.74",
          "eval_cost": "7.40",
          "prefix_cost": "86.14",
          "data_read_per_join": "1K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`maniamall_cscart`.`cscart_product_prices`.`lower_limit` = 1) and (`maniamall_cscart`.`cscart_product_prices`.`product_id` in (1128285,1128289,1129605,1129852,525901,1128299,1199097,2055715,1718556,1128294,1129606,1444124,1128290,1199098,1373431,1722316,1373435,1373432,1128108,1199099,1199095,1129597,1128097,1129869,1129863,1128078,1193387,1198929,1198866,1129865,1129867,1198921,1129873,1129857,1129861,1129864,2538988)) and (`maniamall_cscart`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
525901 21.240000
1128078 31.240000
1128097 31.240000
1128108 71.240000
1128285 257.490000
1128289 257.490000
1128290 257.490000
1128294 257.490000
1128299 257.490000
1129597 31.240000
1129605 257.490000
1129606 257.490000
1129852 294.990000
1129857 74.990000
1129861 74.990000
1129863 74.990000
1129864 74.990000
1129865 87.490000
1129867 87.490000
1129869 87.490000
1129873 87.490000
1193387 31.240000
1198866 57.490000
1198921 31.240000
1198929 31.240000
1199095 71.240000
1199097 71.240000
1199098 71.240000
1199099 71.240000
1373431 24.990000
1373432 24.990000
1373435 24.990000
1444124 32.490000
1718556 137.490000
1722316 29.990000
2055715 169.990000
2538988 199.990000