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 (
    3747, 33366, 1875, 3714, 40911, 2232, 
    2081, 5218, 3260, 6140, 6617, 3525, 
    3760, 2496, 3523, 23172, 4698, 1260, 
    1976, 4465, 4362, 4691, 3584, 6125, 
    2151, 1441, 5830, 1482, 37772, 4599, 
    5604, 3534
  ) 
  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.11039

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 (3747,33366,1875,3714,40911,2232,2081,5218,3260,6140,6617,3525,3760,2496,3523,23172,4698,1260,1976,4465,4362,4691,3584,6125,2151,1441,5830,1482,37772,4599,5604,3534) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1260 138000.0000
1441 450000.0000
1482 199000.0000
1875 79000.0000
1976 405000.0000
2081 520000.0000
2151 200000.0000
2232 799000.0000
2496 395000.0000
3260 105000.0000
3523 129000.0000
3525 129000.0000
3534 32900.0000
3584 119000.0000
3714 649000.0000
3747 90000.0000
3760 130000.0000
4362 845000.0000
4465 800000.0000
4599 460000.0000
4691 95000.0000
4698 95000.0000
5218 130000.0000
5604 104500.0000
5830 555000.0000
6125 70000.0000
6140 159000.0000
6617 48000.0000
23172 55000.0000
33366 780000.0000
37772 154000.0000
40911 280000.0000