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 (
    1942, 48503, 1946, 44946, 44943, 44944, 
    44947, 44945, 856, 6282, 6284, 1429, 
    6211, 31957, 4305, 28167, 33716, 3885, 
    51, 5628, 33717, 21680, 6212, 3886, 
    28165, 1901, 1899, 5619, 5621, 26977, 
    6286, 33718
  ) 
  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.00417

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 32,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (1942,48503,1946,44946,44943,44944,44947,44945,856,6282,6284,1429,6211,31957,4305,28167,33716,3885,51,5628,33717,21680,6212,3886,28165,1901,1899,5619,5621,26977,6286,33718)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
51 175000.0000
856 2280000.0000
1429 280000.0000
1899 650000.0000
1901 750000.0000
1942 85000.0000
1946 75000.0000
3885 330000.0000
3886 380000.0000
4305 79000.0000
5619 710000.0000
5621 450000.0000
5628 690000.0000
6211 535000.0000
6212 550000.0000
6282 250000.0000
6284 250000.0000
6286 250000.0000
21680 280000.0000
26977 80000.0000
28165 195000.0000
28167 250000.0000
31957 385000.0000
33716 2580000.0000
33717 2580000.0000
33718 3580000.0000
44943 680000.0000
44944 650000.0000
44945 650000.0000
44946 700000.0000
44947 320000.0000
48503 920000.0000