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 (
    12684, 12685, 12686, 12687, 12688, 12689, 
    12690, 12691, 12692, 12693, 12694, 
    12695, 12696, 12697, 12698, 12699, 
    12700, 12701, 12702, 12703, 12704, 
    12705, 12706, 12707, 12708, 12709, 
    12710, 12711, 12712, 12713
  ) 
  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.00103

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "42.01"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 60,
        "rows_produced_per_join": 60,
        "filtered": "100.00",
        "index_condition": "((`test2_gaseus`.`cscart_product_prices`.`lower_limit` = 1) and (`test2_gaseus`.`cscart_product_prices`.`product_id` in (12684,12685,12686,12687,12688,12689,12690,12691,12692,12693,12694,12695,12696,12697,12698,12699,12700,12701,12702,12703,12704,12705,12706,12707,12708,12709,12710,12711,12712,12713)) and (`test2_gaseus`.`cscart_product_prices`.`usergroup_id` in (0,1)))",
        "cost_info": {
          "read_cost": "36.01",
          "eval_cost": "6.00",
          "prefix_cost": "42.01",
          "data_read_per_join": "1K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ]
      }
    }
  }
}

Result

product_id price
12684 2480.00000000
12685 2480.00000000
12686 2480.00000000
12687 2480.00000000
12688 2480.00000000
12689 2480.00000000
12690 2480.00000000
12691 2480.00000000
12692 2480.00000000
12693 2480.00000000
12694 2862.80000000
12695 2862.80000000
12696 2862.80000000
12697 2862.80000000
12698 2862.80000000
12699 2862.80000000
12700 2862.80000000
12701 2862.80000000
12702 2862.80000000
12703 2862.80000000
12704 2862.80000000
12705 2862.80000000
12706 2862.80000000
12707 2862.80000000
12708 2862.80000000
12709 2862.80000000
12710 2862.80000000
12711 2862.80000000
12712 2862.80000000
12713 2862.80000000