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 (
    4712, 4502, 4729, 4698, 4724, 4691, 46176, 
    4684, 4490, 4688, 4508, 4498, 4690, 
    4719, 4504, 4700, 4692, 4519, 4510, 
    4696, 4735, 4495, 4687, 4505, 4694, 
    4731, 4501, 4506, 4693, 4497
  ) 
  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.07160

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": 7.102270126,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (4712,4502,4729,4698,4724,4691,46176,4684,4490,4688,4508,4498,4690,4719,4504,4700,4692,4519,4510,4696,4735,4495,4687,4505,4694,4731,4501,4506,4693,4497) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
4490 80000.0000
4495 60000.0000
4497 80000.0000
4498 80000.0000
4501 60000.0000
4502 80000.0000
4504 80000.0000
4505 80000.0000
4506 80000.0000
4508 40000.0000
4510 80000.0000
4519 50000.0000
4684 40000.0000
4687 95000.0000
4688 95000.0000
4690 95000.0000
4691 95000.0000
4692 95000.0000
4693 95000.0000
4694 95000.0000
4696 95000.0000
4698 95000.0000
4700 95000.0000
4712 300000.0000
4719 200000.0000
4724 300000.0000
4729 200000.0000
4731 300000.0000
4735 80000.0000
46176 140000.0000