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 (
    34672, 36733, 1897, 401, 6577, 6058, 
    46181, 1412, 3585, 1121, 6061, 382, 
    2502, 2136, 2961, 6063, 2132, 5890, 
    3875, 6062, 44939, 3230, 112, 2286, 
    6057, 5567, 5141, 6052, 4280, 3880, 
    31642, 2513
  ) 
  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.00391

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 (34672,36733,1897,401,6577,6058,46181,1412,3585,1121,6061,382,2502,2136,2961,6063,2132,5890,3875,6062,44939,3230,112,2286,6057,5567,5141,6052,4280,3880,31642,2513)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
112 145000.0000
382 170000.0000
401 38556.0000
1121 139000.0000
1412 66000.0000
1897 80000.0000
2132 70000.0000
2136 55000.0000
2286 35000.0000
2502 35000.0000
2513 55000.0000
2961 75000.0000
3230 129000.0000
3585 119000.0000
3875 170000.0000
3880 150000.0000
4280 70000.0000
5141 60000.0000
5567 70000.0000
5890 93000.0000
6052 155000.0000
6057 80000.0000
6058 80000.0000
6061 75000.0000
6062 75000.0000
6063 80000.0000
6577 165000.0000
31642 119000.0000
34672 55000.0000
36733 35000.0000
44939 117000.0000
46181 25000.0000