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 (
    3841, 5114, 2339, 3212, 3389, 2924, 1626, 
    3350, 4163, 3392, 6098, 5811, 3390, 
    4934, 5719, 2862, 4960, 5706, 5720, 
    4933, 5850, 5821, 2922, 5849
  ) 
  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.00129

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 (3841,5114,2339,3212,3389,2924,1626,3350,4163,3392,6098,5811,3390,4934,5719,2862,4960,5706,5720,4933,5850,5821,2922,5849))",
        "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
1626 182000.00000000
2339 24000.00000000
2862 282000.00000000
2922 18000.00000000
2924 19000.00000000
3212 4000.00000000
3350 25000.00000000
3389 25000.00000000
3390 20000.00000000
3392 67000.00000000
3841 28000.00000000
4163 33000.00000000
4933 128000.00000000
4934 129000.00000000
4960 295000.00000000
5114 6000.00000000
5706 70000.00000000
5719 70000.00000000
5720 70000.00000000
5811 69000.00000000
5821 185000.00000000
5849 50000.00000000
5850 40000.00000000
6098 46000.00000000