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 (
    6062, 6751, 6829, 6865, 8275, 8569, 8724, 
    10058, 10120, 6854, 6864, 7873, 8445, 
    10239, 10474, 6060, 7823, 7838, 7881, 
    8435, 9602, 10128, 8801, 9881
  ) 
  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.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.06"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 29,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6062,6751,6829,6865,8275,8569,8724,10058,10120,6854,6864,7873,8445,10239,10474,6060,7823,7838,7881,8435,9602,10128,8801,9881))",
        "cost_info": {
          "read_cost": "18.48",
          "eval_cost": "0.58",
          "prefix_cost": "19.06",
          "data_read_per_join": "139"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
6060 141000.00000000
6062 177000.00000000
6751 298000.00000000
6829 10000.00000000
6854 15500.00000000
6864 392000.00000000
6865 370000.00000000
7823 2500.00000000
7838 1750.00000000
7873 17000.00000000
7881 14500.00000000
8275 33000.00000000
8435 14000.00000000
8445 35000.00000000
8569 18000.00000000
8724 29000.00000000
8801 17000.00000000
9602 1335000.00000000
9881 1110000.00000000
10058 22000.00000000
10120 295000.00000000
10128 740000.00000000
10239 24000.00000000
10474 55000.00000000