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 (
    46175, 46244, 47609, 46558, 46563, 4061, 
    46268, 47591, 4059, 46243, 46709, 46559, 
    48972, 4058, 46561, 4060, 46562, 46240, 
    4057, 40366, 46557, 47619, 47617, 48551, 
    4063, 47615, 46560, 4065, 40538, 40537, 
    47612, 49544
  ) 
  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.04642

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 (46175,46244,47609,46558,46563,4061,46268,47591,4059,46243,46709,46559,48972,4058,46561,4060,46562,46240,4057,40366,46557,47619,47617,48551,4063,47615,46560,4065,40538,40537,47612,49544) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
4057 800000.0000
4058 800000.0000
4059 800000.0000
4060 800000.0000
4061 800000.0000
4063 800000.0000
4065 800000.0000
40366 150000.0000
40537 60000.0000
40538 60000.0000
46175 140000.0000
46240 4666000.0000
46243 4666000.0000
46244 4666000.0000
46268 4666000.0000
46557 3000000.0000
46558 3000000.0000
46559 3666000.0000
46560 3000000.0000
46561 7020000.0000
46562 3000000.0000
46563 7020000.0000
46709 620000.0000
47591 310000.0000
47609 858000.0000
47612 1254000.0000
47615 1650000.0000
47617 572000.0000
47619 385000.0000
48551 2260000.0000
48972 229000.0000
49544 150000.0000