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 (
    3196, 33703, 37282, 40759, 33701, 37885, 
    2151, 6045, 40811, 5642, 2472, 47604, 
    6363, 15613, 2473, 3991, 3465, 5643, 
    4823, 37295, 5772, 2565, 37298, 1850, 
    2155, 47592, 2626, 26862, 41130, 37280, 
    21746, 37881
  ) 
  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.00331

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 (3196,33703,37282,40759,33701,37885,2151,6045,40811,5642,2472,47604,6363,15613,2473,3991,3465,5643,4823,37295,5772,2565,37298,1850,2155,47592,2626,26862,41130,37280,21746,37881)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1850 330000.0000
2151 200000.0000
2155 220000.0000
2472 214500.0000
2473 214500.0000
2565 400000.0000
2626 220000.0000
3196 220000.0000
3465 200000.0000
3991 385000.0000
4823 380000.0000
5642 210000.0000
5643 210000.0000
5772 431200.0000
6045 499000.0000
6363 480000.0000
15613 350000.0000
21746 475000.0000
26862 223000.0000
33701 275000.0000
33703 275000.0000
37280 275000.0000
37282 207000.0000
37295 248000.0000
37298 207000.0000
37881 330000.0000
37885 330000.0000
40759 382000.0000
40811 269000.0000
41130 499000.0000
47592 484000.0000
47604 340000.0000