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 (
    3900, 3901, 3913, 116, 3909, 3910, 3911, 
    120, 118, 3914, 3912, 3897, 53, 5881, 
    3898, 3899
  ) 
  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.00049

JSON explain

{
  "query_block": {
    "select_id": 1,
    "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": 100,
      "index_condition": "cscart_product_prices.product_id in (3900,3901,3913,116,3909,3910,3911,120,118,3914,3912,3897,53,5881,3898,3899)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
53 14.420000
116 13.390000
118 14.420000
120 14.420000
3897 16.040000
3898 16.040000
3899 16.040000
3900 13.710000
3901 13.710000
3909 13.710000
3910 14.890000
3911 17.180000
3912 16.040000
3913 13.710000
3914 16.040000
5881 14.070000