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 (
    2329, 2328, 2785, 2779, 2783, 2780, 2782, 
    2781, 2784, 2786, 2777, 2778
  ) 
  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.00112

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": 12,
      "filtered": 99.82517242,
      "index_condition": "cscart_product_prices.product_id in (2329,2328,2785,2779,2783,2780,2782,2781,2784,2786,2777,2778)",
      "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
    }
  }
}

Result

product_id price
2328 6750.000000
2329 6750.000000
2777 33378.350000
2778 19593.760000
2779 19593.760000
2780 33378.350000
2781 33378.350000
2782 19593.760000
2783 19593.760000
2784 33378.350000
2785 33378.350000
2786 19593.760000