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 (
    47011, 40439, 47013, 40434, 47010, 40440, 
    47016, 47018, 47019, 47017, 40452, 
    39613, 40454, 40453, 306, 48843, 2321, 
    40455, 21464, 48844, 39612, 48850, 
    2317, 48849, 48847, 48845, 48851, 48852, 
    48848, 49397
  ) 
  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.11805

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": 9.469693184,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (47011,40439,47013,40434,47010,40440,47016,47018,47019,47017,40452,39613,40454,40453,306,48843,2321,40455,21464,48844,39612,48850,2317,48849,48847,48845,48851,48852,48848,49397) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
306 400000.0000
2317 400000.0000
2321 400000.0000
21464 400000.0000
39612 180000.0000
39613 590000.0000
40434 180000.0000
40439 180000.0000
40440 180000.0000
40452 590000.0000
40453 590000.0000
40454 590000.0000
40455 590000.0000
47010 290000.0000
47011 290000.0000
47013 290000.0000
47016 290000.0000
47017 290000.0000
47018 290000.0000
47019 290000.0000
48843 540000.0000
48844 540000.0000
48845 540000.0000
48847 540000.0000
48848 540000.0000
48849 540000.0000
48850 540000.0000
48851 640000.0000
48852 540000.0000
49397 590000.0000