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 (
    12714, 12715, 12716, 12717, 12718, 12719, 
    12720, 12721, 12722, 12723, 12724, 
    12725, 12726, 12727, 12728, 12729, 
    12730, 12731, 12732, 12733, 12734, 
    12735, 12736, 12737, 12738, 12739, 
    12740, 12741, 12742, 12743
  ) 
  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.00092

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 (12714,12715,12716,12717,12718,12719,12720,12721,12722,12723,12724,12725,12726,12727,12728,12729,12730,12731,12732,12733,12734,12735,12736,12737,12738,12739,12740,12741,12742,12743)) 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
12714 2792.50000000
12715 2792.50000000
12716 2792.50000000
12717 2792.50000000
12718 2792.50000000
12719 2792.50000000
12720 2792.50000000
12721 2792.50000000
12722 2792.50000000
12723 2792.50000000
12724 3325.50000000
12725 3325.50000000
12726 3325.50000000
12727 3325.50000000
12728 3325.50000000
12729 3325.50000000
12730 3325.50000000
12731 3325.50000000
12732 3325.50000000
12733 3325.50000000
12734 3325.50000000
12735 3325.50000000
12736 3325.50000000
12737 3325.50000000
12738 3325.50000000
12739 3325.50000000
12740 3325.50000000
12741 3325.50000000
12742 3325.50000000
12743 3325.50000000