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 (
    47855, 48852, 48322, 47197, 47176, 47853, 
    45256, 44881, 48122, 47607, 47622, 
    41012, 36472, 44752, 46195, 48791, 
    44574, 49185, 48776, 47367, 48033, 
    47166, 44756, 47185, 48790, 50699, 
    48065, 47177, 47897, 50698, 31318, 
    35705
  ) 
  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.20700

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": 10.7717762,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (47855,48852,48322,47197,47176,47853,45256,44881,48122,47607,47622,41012,36472,44752,46195,48791,44574,49185,48776,47367,48033,47166,44756,47185,48790,50699,48065,47177,47897,50698,31318,35705) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
31318 656000.0000
35705 890000.0000
36472 780000.0000
41012 920000.0000
44574 200000.0000
44752 1160000.0000
44756 1430000.0000
44881 350000.0000
45256 350000.0000
46195 279000.0000
47166 275000.0000
47176 205000.0000
47177 255000.0000
47185 45000.0000
47197 475000.0000
47367 275000.0000
47607 847000.0000
47622 499000.0000
47853 699000.0000
47855 3290000.0000
47897 53000.0000
48033 339000.0000
48065 260000.0000
48122 295000.0000
48322 270000.0000
48776 70000.0000
48790 95000.0000
48791 95000.0000
48852 540000.0000
49185 198000.0000
50698 656000.0000
50699 656000.0000