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 (
    5625, 3751, 4231, 5932, 4431, 4460, 5613, 
    3752, 4293, 4205, 5927, 4470, 5815, 
    4258, 5866, 4271, 6162, 4471, 5857, 
    4291, 5862, 6113, 5808, 5616, 4459, 
    6116, 8799, 10080, 10083
  ) 
  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.00149

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.31"
    },
    "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": 29,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5625,3751,4231,5932,4431,4460,5613,3752,4293,4205,5927,4470,5815,4258,5866,4271,6162,4471,5857,4291,5862,6113,5808,5616,4459,6116,8799,10080,10083))",
        "cost_info": {
          "read_cost": "19.73",
          "eval_cost": "0.58",
          "prefix_cost": "20.31",
          "data_read_per_join": "139"
        },
        "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
3751 205000.00000000
3752 261000.00000000
4205 60000.00000000
4231 60000.00000000
4258 107000.00000000
4271 120000.00000000
4291 174000.00000000
4293 186000.00000000
4431 204000.00000000
4459 306000.00000000
4460 306000.00000000
4470 312000.00000000
4471 312000.00000000
5613 435000.00000000
5616 475000.00000000
5625 338000.00000000
5808 475000.00000000
5815 550000.00000000
5857 550000.00000000
5862 475000.00000000
5866 390000.00000000
5927 229000.00000000
5932 180000.00000000
6113 200000.00000000
6116 320000.00000000
6162 297000.00000000
8799 74000.00000000
10080 245000.00000000
10083 470000.00000000