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 (
    44559, 5259, 45267, 3811, 27297, 5284, 
    41226, 43658, 45587, 31901, 40810, 
    45261, 44557, 27296, 3808, 6104, 44556, 
    45262, 43661, 40506, 44555, 43659, 
    43827, 47821, 45263, 3807, 48869, 43660, 
    44762, 48776, 44558, 40310
  ) 
  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.09390

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.585855484,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (44559,5259,45267,3811,27297,5284,41226,43658,45587,31901,40810,45261,44557,27296,3808,6104,44556,45262,43661,40506,44555,43659,43827,47821,45263,3807,48869,43660,44762,48776,44558,40310) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
3807 70000.0000
3808 70000.0000
3811 65000.0000
5259 44000.0000
5284 58000.0000
6104 75000.0000
27296 50000.0000
27297 75000.0000
31901 82000.0000
40310 1499000.0000
40506 80000.0000
40810 135000.0000
41226 1200000.0000
43658 180000.0000
43659 180000.0000
43660 180000.0000
43661 150000.0000
43827 230000.0000
44555 75000.0000
44556 75000.0000
44557 70000.0000
44558 70000.0000
44559 70000.0000
44762 143000.0000
45261 145000.0000
45262 145000.0000
45263 145000.0000
45267 145000.0000
45587 90000.0000
47821 110000.0000
48776 70000.0000
48869 45000.0000