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 (
    1057, 5988, 5989, 2141, 3568, 3868, 41340, 
    3567, 3869, 2142, 47922, 47921, 41343, 
    47896, 31638, 47924, 3870, 47923, 2143, 
    31633, 31632, 3872, 3517, 2144, 3516, 
    31634, 3518, 31631, 15462, 47024, 3871, 
    3570
  ) 
  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.04598

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.080804825,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (1057,5988,5989,2141,3568,3868,41340,3567,3869,2142,47922,47921,41343,47896,31638,47924,3870,47923,2143,31633,31632,3872,3517,2144,3516,31634,3518,31631,15462,47024,3871,3570) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1057 320000.0000
2141 96000.0000
2142 96000.0000
2143 96000.0000
2144 96000.0000
3516 169000.0000
3517 169000.0000
3518 169000.0000
3567 129000.0000
3568 129000.0000
3570 129000.0000
3868 170000.0000
3869 420000.0000
3870 190000.0000
3871 490000.0000
3872 1200000.0000
5988 55000.0000
5989 55000.0000
15462 39000.0000
31631 49000.0000
31632 55000.0000
31633 135000.0000
31634 135000.0000
31638 135000.0000
41340 295000.0000
41343 310000.0000
47024 550000.0000
47896 315000.0000
47921 285000.0000
47922 320000.0000
47923 295000.0000
47924 315000.0000