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 (
    6091, 3288, 28159, 41345, 5544, 3287, 
    5543, 3289, 6092, 37774, 1535, 37775, 
    40761, 41170, 1534, 37771, 384, 37776, 
    383, 5920, 37777, 40760, 5921, 6159, 
    5913, 6172, 28157, 5915, 6169, 5918, 
    6164, 6171
  ) 
  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.00786

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 (6091,3288,28159,41345,5544,3287,5543,3289,6092,37774,1535,37775,40761,41170,1534,37771,384,37776,383,5920,37777,40760,5921,6159,5913,6172,28157,5915,6169,5918,6164,6171)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
383 109000.0000
384 99000.0000
1534 235000.0000
1535 235000.0000
3287 3500000.0000
3288 1100000.0000
3289 297000.0000
5543 75000.0000
5544 75000.0000
5913 96000.0000
5915 186000.0000
5918 74000.0000
5920 74000.0000
5921 74000.0000
6091 770000.0000
6092 1200000.0000
6159 80000.0000
6164 80000.0000
6169 85000.0000
6171 65000.0000
6172 85000.0000
28157 900000.0000
28159 3700000.0000
37771 49000.0000
37774 289000.0000
37775 219000.0000
37776 317000.0000
37777 499000.0000
40760 579000.0000
40761 775000.0000
41170 225000.0000
41345 550000.0000