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 (
    26863, 43796, 4237, 43798, 5270, 5257, 
    6070, 37849, 335, 5726, 5288, 40809, 
    5228, 18194, 5265, 40754, 4279, 40807, 
    926, 1266, 26851, 32360, 1542, 6103, 
    26857, 37942, 2449, 31904, 31618, 6102, 
    31646, 35735
  ) 
  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.00186

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (26863,43796,4237,43798,5270,5257,6070,37849,335,5726,5288,40809,5228,18194,5265,40754,4279,40807,926,1266,26851,32360,1542,6103,26857,37942,2449,31904,31618,6102,31646,35735)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
335 160000.0000
926 50000.0000
1266 170000.0000
1542 145000.0000
2449 137500.0000
4237 45000.0000
4279 55000.0000
5228 170000.0000
5257 27540.0000
5265 38556.0000
5270 93636.0000
5288 50609.0000
5726 160000.0000
6070 100000.0000
6102 75000.0000
6103 75000.0000
18194 162000.0000
26851 152000.0000
26857 88000.0000
26863 194000.0000
31618 135000.0000
31646 179000.0000
31904 135000.0000
32360 199000.0000
35735 99000.0000
37849 159000.0000
37942 200000.0000
40754 140400.0000
40807 41000.0000
40809 190000.0000
43796 172800.0000
43798 162000.0000