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 (
    41436, 2434, 31651, 6558, 6086, 534, 
    5815, 5829, 22791, 618, 31786, 41229, 
    5621, 6559, 37099, 3778, 46716, 24745, 
    5500, 42077, 2458, 6554, 15218, 25730, 
    41399, 47599, 2015, 2255, 6098, 48826, 
    40526, 6555
  ) 
  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.04365

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.333330154,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (41436,2434,31651,6558,6086,534,5815,5829,22791,618,31786,41229,5621,6559,37099,3778,46716,24745,5500,42077,2458,6554,15218,25730,41399,47599,2015,2255,6098,48826,40526,6555) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
534 210000.0000
618 80000.0000
2015 140000.0000
2255 21800000.0000
2434 192500.0000
2458 82500.0000
3778 535000.0000
5500 70000.0000
5621 450000.0000
5815 106000.0000
5829 295000.0000
6086 170000.0000
6098 50000.0000
6554 590000.0000
6555 590000.0000
6558 590000.0000
6559 709000.0000
15218 450000.0000
22791 389000.0000
24745 250000.0000
25730 140400.0000
31651 450000.0000
31786 490000.0000
37099 495000.0000
40526 385000.0000
41229 75000.0000
41399 480000.0000
41436 3749000.0000
42077 60000.0000
46716 320000.0000
47599 605000.0000
48826 75000.0000