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 (
    26868, 46144, 44931, 6165, 28238, 26867, 
    46142, 46145, 44930, 46148, 6148, 47898, 
    46149, 41952, 46147, 47165, 47166, 
    47897, 41955, 47167, 47668, 46146, 
    43662, 41954, 47664, 47168, 47665, 
    49394, 41953, 47667, 16567, 41956
  ) 
  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.00171

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 (26868,46144,44931,6165,28238,26867,46142,46145,44930,46148,6148,47898,46149,41952,46147,47165,47166,47897,41955,47167,47668,46146,43662,41954,47664,47168,47665,49394,41953,47667,16567,41956)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
6148 399000.0000
6165 105000.0000
16567 214000.0000
26867 358000.0000
26868 105000.0000
28238 80000.0000
41952 323500.0000
41953 115000.0000
41954 154000.0000
41955 800000.0000
41956 750000.0000
43662 100000.0000
44930 79000.0000
44931 99000.0000
46142 69000.0000
46144 65000.0000
46145 65000.0000
46146 59000.0000
46147 38000.0000
46148 48000.0000
46149 45000.0000
47165 330000.0000
47166 275000.0000
47167 99000.0000
47168 190000.0000
47664 400000.0000
47665 420000.0000
47667 800000.0000
47668 690000.0000
47897 53000.0000
47898 86000.0000
49394 95000.0000