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 (
    2775, 2767, 2562, 3548, 5151, 2786, 3408, 
    3744, 2733, 3359, 5126, 5133, 2759, 
    5137, 3375, 3517, 5143, 8696, 8243, 
    8617, 8570, 8703, 7873, 7871
  ) 
  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.00102

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "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": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2775,2767,2562,3548,5151,2786,3408,3744,2733,3359,5126,5133,2759,5137,3375,3517,5143,8696,8243,8617,8570,8703,7873,7871))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "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
2562 92000.00000000
2733 121000.00000000
2759 173000.00000000
2767 271000.00000000
2775 45000.00000000
2786 270000.00000000
3359 38000.00000000
3375 57000.00000000
3408 107000.00000000
3517 282000.00000000
3548 29000.00000000
3744 75000.00000000
5126 53750.00000000
5133 32500.00000000
5137 83500.00000000
5143 35250.00000000
5151 24500.00000000
7871 17500.00000000
7873 17000.00000000
8243 36000.00000000
8570 44000.00000000
8617 44000.00000000
8696 29000.00000000
8703 29000.00000000