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 (
    618, 4260, 31786, 52, 5621, 37099, 46716, 
    2458, 5889, 2673, 5906, 15218, 47599, 
    223, 25180, 286, 26604, 5920, 294, 4259, 
    4194, 2576, 26608, 2492, 20616, 47603, 
    5813, 28440, 2448, 6367, 4500, 3669
  ) 
  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.06328

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.080804825,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (618,4260,31786,52,5621,37099,46716,2458,5889,2673,5906,15218,47599,223,25180,286,26604,5920,294,4259,4194,2576,26608,2492,20616,47603,5813,28440,2448,6367,4500,3669) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
52 175000.0000
223 160000.0000
286 360000.0000
294 260000.0000
618 80000.0000
2448 302500.0000
2458 82500.0000
2492 395000.0000
2576 190000.0000
2673 129000.0000
3669 350000.0000
4194 109000.0000
4259 95000.0000
4260 100000.0000
4500 80000.0000
5621 450000.0000
5813 90000.0000
5889 47000.0000
5906 53000.0000
5920 74000.0000
6367 880000.0000
15218 450000.0000
20616 90000.0000
25180 270000.0000
26604 200000.0000
26608 300000.0000
28440 165000.0000
31786 490000.0000
37099 495000.0000
46716 320000.0000
47599 605000.0000
47603 340000.0000