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 (
    6068, 5507, 2563, 3384, 5505, 31643, 
    2415, 144, 2564, 4459, 31899, 330, 3382, 
    5205, 82, 37847, 33757, 211, 3374, 3183, 
    31900, 25730, 5815, 41229, 5500, 2458, 
    26854, 6098, 5226, 405, 2414, 26864
  ) 
  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.00377

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 (6068,5507,2563,3384,5505,31643,2415,144,2564,4459,31899,330,3382,5205,82,37847,33757,211,3374,3183,31900,25730,5815,41229,5500,2458,26854,6098,5226,405,2414,26864)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
82 99000.0000
144 160000.0000
211 87000.0000
330 99000.0000
405 38556.0000
2414 79000.0000
2415 82000.0000
2458 82500.0000
2563 85000.0000
2564 85000.0000
3183 55000.0000
3374 85000.0000
3382 90000.0000
3384 189000.0000
4459 198000.0000
5205 150000.0000
5226 170000.0000
5500 70000.0000
5505 70000.0000
5507 70000.0000
5815 106000.0000
6068 100000.0000
6098 50000.0000
25730 140400.0000
26854 66000.0000
26864 47000.0000
31643 88000.0000
31899 130000.0000
31900 130000.0000
33757 135000.0000
37847 159000.0000
41229 75000.0000