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 (
    45360, 23044, 502, 27002, 46548, 41123, 
    23017, 26871, 1895, 47015, 1715, 26898, 
    26889, 44858, 26897, 23047, 26876, 
    47657, 40441, 5994, 47654, 4512, 26870, 
    42111, 26893, 26874, 26878, 26888, 
    26885, 6360, 26875, 37095
  ) 
  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.00546

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 (45360,23044,502,27002,46548,41123,23017,26871,1895,47015,1715,26898,26889,44858,26897,23047,26876,47657,40441,5994,47654,4512,26870,42111,26893,26874,26878,26888,26885,6360,26875,37095)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
502 200000.0000
1715 349000.0000
1895 498000.0000
4512 80000.0000
5994 79000.0000
6360 390000.0000
23017 93000.0000
23044 95000.0000
23047 95000.0000
26870 329000.0000
26871 329000.0000
26874 329000.0000
26875 170000.0000
26876 170000.0000
26878 170000.0000
26885 63000.0000
26888 63000.0000
26889 54000.0000
26893 56000.0000
26897 88000.0000
26898 240000.0000
27002 52000.0000
37095 160000.0000
40441 180000.0000
41123 750000.0000
42111 50000.0000
44858 150000.0000
45360 160000.0000
46548 200000.0000
47015 290000.0000
47654 500000.0000
47657 285000.0000