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 (
    40524, 46112, 45348, 44516, 40533, 36470, 
    48810, 48261, 44515, 43656, 45363, 
    45241, 40713, 41440, 47257, 47492, 
    3616, 25162, 2044, 43657, 47489, 47004, 
    43856, 47258, 47393, 48800, 47389, 
    47491, 47485, 44570, 47353, 47488
  ) 
  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.12244

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.593746185,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (40524,46112,45348,44516,40533,36470,48810,48261,44515,43656,45363,45241,40713,41440,47257,47492,3616,25162,2044,43657,47489,47004,43856,47258,47393,48800,47389,47491,47485,44570,47353,47488) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
2044 3635100.0000
3616 6177000.0000
25162 215000.0000
36470 450000.0000
40524 1595000.0000
40533 88000.0000
40713 1155000.0000
41440 4079000.0000
43656 165000.0000
43657 165000.0000
43856 1800000.0000
44515 210000.0000
44516 280000.0000
44570 235000.0000
45241 6050000.0000
45348 330000.0000
45363 345000.0000
46112 95000.0000
47004 85000.0000
47257 350000.0000
47258 250000.0000
47353 856000.0000
47389 379000.0000
47393 379000.0000
47485 980000.0000
47488 1900000.0000
47489 2100000.0000
47491 1800000.0000
47492 1200000.0000
48261 900000.0000
48800 90000.0000
48810 320000.0000