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 (
    3820, 41007, 32490, 41010, 5963, 32498, 
    5589, 5724, 5447, 33609, 32492, 4365, 
    31886, 32488, 4468, 5469, 3819, 1064, 
    46188, 4358, 5474, 5962, 5464, 32496, 
    31875, 4464, 33714, 32491, 33608, 41008, 
    26986, 32487
  ) 
  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.22037

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 (3820,41007,32490,41010,5963,32498,5589,5724,5447,33609,32492,4365,31886,32488,4468,5469,3819,1064,46188,4358,5474,5962,5464,32496,31875,4464,33714,32491,33608,41008,26986,32487) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1064 329000.0000
3819 200000.0000
3820 200000.0000
4358 790000.0000
4365 1630000.0000
4464 660000.0000
4468 4150000.0000
5447 3690000.0000
5464 1450000.0000
5469 1390000.0000
5474 1280000.0000
5589 145000.0000
5724 95000.0000
5962 3500000.0000
5963 3500000.0000
26986 16000.0000
31875 1200000.0000
31886 550000.0000
32487 5000.0000
32488 13000.0000
32490 13000.0000
32491 13000.0000
32492 13000.0000
32496 15000.0000
32498 3000.0000
33608 25000.0000
33609 25000.0000
33714 2380000.0000
41007 2800000.0000
41008 2800000.0000
41010 2800000.0000
46188 4666000.0000