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 (
    42077, 41399, 47599, 2255, 1836, 223, 
    48826, 40526, 25180, 286, 4071, 3004, 
    3765, 294, 33718, 4259, 2576, 5581, 
    5577, 21188, 2492, 23402, 2302, 20616, 
    31872, 47603, 38560, 48844, 5813, 28440, 
    1732, 23401
  ) 
  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.06149

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 (42077,41399,47599,2255,1836,223,48826,40526,25180,286,4071,3004,3765,294,33718,4259,2576,5581,5577,21188,2492,23402,2302,20616,31872,47603,38560,48844,5813,28440,1732,23401) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
223 160000.0000
286 360000.0000
294 260000.0000
1732 565000.0000
1836 160000.0000
2255 21800000.0000
2302 335000.0000
2492 395000.0000
2576 190000.0000
3004 350000.0000
3765 230000.0000
4071 300000.0000
4259 95000.0000
5577 1080000.0000
5581 1080000.0000
5813 90000.0000
20616 90000.0000
21188 125000.0000
23401 230000.0000
23402 215000.0000
25180 270000.0000
28440 165000.0000
31872 300000.0000
33718 3580000.0000
38560 484000.0000
40526 385000.0000
41399 480000.0000
42077 60000.0000
47599 605000.0000
47603 340000.0000
48826 75000.0000
48844 540000.0000