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 (
    312879, 312875, 312878, 312836, 312880, 
    312865, 312874, 312868, 312849, 312850, 
    312877
  ) 
  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.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.046040349,
    "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": 22,
          "cost": 0.0390445,
          "filtered": 49.99988174,
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.product_id in (312879,312875,312878,312836,312880,312865,312874,312868,312849,312850,312877) and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
312836 1004.00000000
312849 1017.00000000
312850 1018.00000000
312865 1033.00000000
312868 1036.00000000
312874 1042.00000000
312875 1043.00000000
312877 1045.00000000
312878 1046.00000000
312879 1047.00000000
312880 1048.00000000