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 (
    3288, 1533, 41345, 5544, 3287, 3286, 
    65, 5543, 3289, 6181, 6093, 6180, 2183, 
    5546, 40761, 2182, 41170, 6533, 26927, 
    6550, 1786, 5973, 74, 6124, 6529, 6534, 
    26966, 6535, 26924, 26968, 6183, 26920
  ) 
  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.00178

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 (3288,1533,41345,5544,3287,3286,65,5543,3289,6181,6093,6180,2183,5546,40761,2182,41170,6533,26927,6550,1786,5973,74,6124,6529,6534,26966,6535,26924,26968,6183,26920)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
65 800000.0000
74 359000.0000
1533 195000.0000
1786 295000.0000
2182 43900.0000
2183 42900.0000
3286 3500000.0000
3287 3500000.0000
3288 1100000.0000
3289 297000.0000
5543 75000.0000
5544 75000.0000
5546 214000.0000
5973 62000.0000
6093 1650000.0000
6124 99000.0000
6180 180000.0000
6181 90000.0000
6183 80000.0000
6529 280000.0000
6533 140000.0000
6534 125000.0000
6535 150000.0000
6550 300000.0000
26920 42000.0000
26924 160000.0000
26927 80000.0000
26966 15000.0000
26968 15000.0000
40761 775000.0000
41170 225000.0000
41345 550000.0000