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 (
    6648, 38552, 31907, 20804, 26467, 83, 
    4880, 5756, 33720, 24988, 47278, 3777, 
    729, 39612, 81, 18748, 31919, 788, 2437, 
    5629, 3174, 35187, 2254, 41420, 33697, 
    356, 2258, 934, 43797, 992, 332, 1532
  ) 
  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.04602

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 (6648,38552,31907,20804,26467,83,4880,5756,33720,24988,47278,3777,729,39612,81,18748,31919,788,2437,5629,3174,35187,2254,41420,33697,356,2258,934,43797,992,332,1532) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
81 99000.0000
83 119000.0000
332 149000.0000
356 4200000.0000
729 440000.0000
788 830000.0000
934 100000.0000
992 890000.0000
1532 225000.0000
2254 3500000.0000
2258 21800000.0000
2437 192500.0000
3174 220000.0000
3777 535000.0000
4880 250000.0000
5629 350000.0000
5756 380000.0000
6648 335000.0000
18748 898000.0000
20804 310000.0000
24988 199000.0000
26467 350000.0000
31907 100000.0000
31919 150000.0000
33697 250000.0000
33720 1820000.0000
35187 699000.0000
38552 720000.0000
39612 180000.0000
41420 610000.0000
43797 189000.0000
47278 578000.0000