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 (
    5770, 461, 40807, 1742, 5763, 4268, 4267, 
    48845, 5758, 47274, 5775, 40802, 1752, 
    40893, 41616, 5764, 5771, 5760, 5773, 
    1758, 5757, 41226, 5768, 40810, 1744, 
    33721, 4303, 5766, 1743, 1753, 35475, 
    48851
  ) 
  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.01209

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 (5770,461,40807,1742,5763,4268,4267,48845,5758,47274,5775,40802,1752,40893,41616,5764,5771,5760,5773,1758,5757,41226,5768,40810,1744,33721,4303,5766,1743,1753,35475,48851)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
461 4506000.0000
1742 571320.0000
1743 549000.0000
1744 829440.0000
1752 961200.0000
1753 1058400.0000
1758 130900.0000
4267 1400000.0000
4268 1400000.0000
4303 119000.0000
5757 425000.0000
5758 220000.0000
5760 700000.0000
5763 588000.0000
5764 901600.0000
5766 730100.0000
5768 1940000.0000
5770 744800.0000
5771 1105800.0000
5773 882000.0000
5775 2500000.0000
33721 1500000.0000
35475 2500000.0000
40802 390000.0000
40807 41000.0000
40810 135000.0000
40893 125000.0000
41226 1200000.0000
41616 1440000.0000
47274 125000.0000
48845 540000.0000
48851 640000.0000