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 (
    312886, 312887, 116523, 312884, 116531, 
    312902, 312899, 312900, 116515, 312904, 
    116535, 312925
  ) 
  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.00067

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.050158501,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup",
          "key_length": "9",
          "used_key_parts": ["product_id", "usergroup_id", "lower_limit"],
          "loops": 1,
          "rows": 24,
          "cost": 0.04252208,
          "filtered": 49.99988174,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (312886,312887,116523,312884,116531,312902,312899,312900,116515,312904,116535,312925) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
116515 599.00000000
116523 603.00000000
116531 608.00000000
116535 610.00000000
312884 1003.00000000
312886 1005.00000000
312887 1006.00000000
312899 1018.00000000
312900 1019.00000000
312902 1021.00000000
312904 1023.00000000
312925 1044.00000000