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 (
    2001, 36500, 5474, 27854, 41370, 46273, 
    793, 40535, 4293, 5962, 5464, 2453, 
    2158, 48683, 353, 2160, 41416, 4291, 
    2008, 44753, 37307, 1744, 29700, 36295, 
    4872, 48677, 48684, 4464, 5595, 4806, 
    41438, 41356
  ) 
  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.14306

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.83837986,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (2001,36500,5474,27854,41370,46273,793,40535,4293,5962,5464,2453,2158,48683,353,2160,41416,4291,2008,44753,37307,1744,29700,36295,4872,48677,48684,4464,5595,4806,41438,41356) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
353 5000000.0000
793 920000.0000
1744 829440.0000
2001 160000.0000
2008 160000.0000
2158 330000.0000
2160 800000.0000
2453 82500.0000
4291 200000.0000
4293 200000.0000
4464 660000.0000
4806 380000.0000
4872 395000.0000
5464 1450000.0000
5474 1280000.0000
5595 190000.0000
5962 3500000.0000
27854 95000.0000
29700 45000.0000
36295 250000.0000
36500 35000.0000
37307 207000.0000
40535 99000.0000
41356 350000.0000
41370 207000.0000
41416 820000.0000
41438 4079000.0000
44753 560000.0000
46273 590000.0000
48677 210000.0000
48683 210000.0000
48684 210000.0000