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 (
    1441, 5830, 37772, 23147, 5915, 2573, 
    40811, 2666, 1271, 35930, 2299, 6473, 
    20625, 2231, 47604, 3720, 48873, 2441, 
    5148, 41825, 1263, 5729, 5918, 2574, 
    6137, 6132, 5618, 31607, 5907, 47008, 
    4388, 24798
  ) 
  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.05610

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 (1441,5830,37772,23147,5915,2573,40811,2666,1271,35930,2299,6473,20625,2231,47604,3720,48873,2441,5148,41825,1263,5729,5918,2574,6137,6132,5618,31607,5907,47008,4388,24798) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1263 138000.0000
1271 130000.0000
1441 450000.0000
2231 549000.0000
2299 275000.0000
2441 214500.0000
2573 190000.0000
2574 190000.0000
2666 189000.0000
3720 335000.0000
4388 180000.0000
5148 60000.0000
5618 710000.0000
5729 150000.0000
5830 555000.0000
5907 103000.0000
5915 186000.0000
5918 74000.0000
6132 169000.0000
6137 159000.0000
6473 310000.0000
20625 90000.0000
23147 100000.0000
24798 67000.0000
31607 89000.0000
35930 95000.0000
37772 154000.0000
40811 269000.0000
41825 135000.0000
47008 300000.0000
47604 340000.0000
48873 250000.0000