SELECT 
  prices.product_id, 
  prices.lower_limit, 
  usergroup_id, 
  prices.percentage_discount, 
  IF(
    prices.percentage_discount = 0, 
    prices.price, 
    prices.price - (
      prices.price * prices.percentage_discount
    )/ 100
  ) as price 
FROM 
  cscart_product_prices prices 
WHERE 
  prices.product_id = 339 
  AND lower_limit > 1 
  AND prices.usergroup_id IN (0, 0, 1) 
ORDER BY 
  lower_limit

Query time 0.00037

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "prices",
      "access_type": "range",
      "possible_keys": ["product_id"],
      "key": "product_id",
      "key_length": "6",
      "used_key_parts": ["product_id", "lower_limit"],
      "rows": 1,
      "filtered": 100,
      "index_condition": "prices.product_id = 339 and prices.lower_limit > 1 and prices.usergroup_id in (0,0,1)"
    }
  }
}