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 (
    1866, 23166, 44922, 3583, 2249, 2296, 
    4914, 47276, 43655, 27079, 4920, 48771, 
    1744, 48070, 33721, 4303, 4308, 34678, 
    5766, 47254, 1743, 49019, 49199, 36270, 
    27077, 35475, 48851, 5774, 48062, 43827, 
    27078, 27076
  ) 
  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.12973

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.09090519,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (1866,23166,44922,3583,2249,2296,4914,47276,43655,27079,4920,48771,1744,48070,33721,4303,4308,34678,5766,47254,1743,49019,49199,36270,27077,35475,48851,5774,48062,43827,27078,27076) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1743 549000.0000
1744 829440.0000
1866 129000.0000
2249 2850000.0000
2296 125000.0000
3583 119000.0000
4303 119000.0000
4308 337000.0000
4914 950000.0000
4920 950000.0000
5766 730100.0000
5774 788900.0000
23166 39000.0000
27076 1400000.0000
27077 1400000.0000
27078 850000.0000
27079 850000.0000
33721 1500000.0000
34678 800000.0000
35475 2500000.0000
36270 1625000.0000
43655 165000.0000
43827 230000.0000
44922 679000.0000
47254 950000.0000
47276 88000.0000
48062 4810000.0000
48070 95000.0000
48771 690000.0000
48851 640000.0000
49019 750000.0000
49199 405000.0000