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 (
    41130, 1306, 6660, 1305, 4785, 37881, 
    4795, 41124, 4789, 20830, 6647, 6650, 
    41423, 41134, 4787, 4793, 41102, 41428, 
    2162, 41424, 1840, 4803, 36496, 41138, 
    41427, 4801, 4799, 2625, 4797, 37895, 
    41426, 19195
  ) 
  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.00199

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 (41130,1306,6660,1305,4785,37881,4795,41124,4789,20830,6647,6650,41423,41134,4787,4793,41102,41428,2162,41424,1840,4803,36496,41138,41427,4801,4799,2625,4797,37895,41426,19195)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1305 250000.0000
1306 339000.0000
1840 280000.0000
2162 800000.0000
2625 190000.0000
4785 250000.0000
4787 250000.0000
4789 350000.0000
4793 450000.0000
4795 450000.0000
4797 100000.0000
4799 100000.0000
4801 100000.0000
4803 100000.0000
6647 696000.0000
6650 335000.0000
6660 675000.0000
19195 30000.0000
20830 190000.0000
36496 1495000.0000
37881 330000.0000
37895 330000.0000
41102 499000.0000
41124 499000.0000
41130 499000.0000
41134 499000.0000
41138 499000.0000
41423 1430000.0000
41424 890000.0000
41426 1095000.0000
41427 890000.0000
41428 1430000.0000