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 (
    47594, 43853, 794, 5774, 804, 47607, 
    41012, 38128, 786, 41019, 47260, 44764, 
    984, 792, 47668, 44763, 6544, 47256, 
    47570, 47487, 47609, 35697, 47667, 
    35712, 35696, 47617, 47485, 35684, 
    47616, 2047, 35693, 50039
  ) 
  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.00273

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 (47594,43853,794,5774,804,47607,41012,38128,786,41019,47260,44764,984,792,47668,44763,6544,47256,47570,47487,47609,35697,47667,35712,35696,47617,47485,35684,47616,2047,35693,50039)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
786 850000.0000
792 850000.0000
794 640000.0000
804 715000.0000
984 700000.0000
2047 841667.0000
5774 788900.0000
6544 905000.0000
35684 930000.0000
35693 630000.0000
35696 540000.0000
35697 550000.0000
35712 580000.0000
38128 750000.0000
41012 920000.0000
41019 749996.0000
43853 860000.0000
44763 795000.0000
44764 505000.0000
47256 810000.0000
47260 690000.0000
47485 980000.0000
47487 550000.0000
47570 610000.0000
47594 583000.0000
47607 847000.0000
47609 858000.0000
47616 781000.0000
47617 572000.0000
47667 800000.0000
47668 690000.0000
50039 910000.0000