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 (
    2017, 833, 41290, 44379, 22800, 35221, 
    28434, 5644, 1674, 1394, 26911, 1684, 
    35214, 924, 3498, 1798, 1518, 36525, 
    1547, 46588, 710, 1680, 22796, 46721, 
    32191, 1691, 27285, 5804, 5655, 37944, 
    3504, 4875
  ) 
  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.06227

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.080804825,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (2017,833,41290,44379,22800,35221,28434,5644,1674,1394,26911,1684,35214,924,3498,1798,1518,36525,1547,46588,710,1680,22796,46721,32191,1691,27285,5804,5655,37944,3504,4875) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
710 195000.0000
833 180000.0000
924 165000.0000
1394 95000.0000
1518 350000.0000
1547 295000.0000
1674 265000.0000
1680 215000.0000
1684 295000.0000
1691 235000.0000
1798 59000.0000
2017 160000.0000
3498 69000.0000
3504 129000.0000
4875 250000.0000
5644 170000.0000
5655 70000.0000
5804 39000.0000
22796 620000.0000
22800 575000.0000
26911 495000.0000
27285 150000.0000
28434 89000.0000
32191 195000.0000
35214 280000.0000
35221 240000.0000
36525 135000.0000
37944 200000.0000
41290 135000.0000
44379 95000.0000
46588 170000.0000
46721 70000.0000