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 (
    5750, 7013, 5739, 5727, 4432, 1553, 2574, 
    1, 228, 247, 944, 478, 8, 985, 3754, 525, 
    2478, 1552, 10284, 6151, 1274, 908, 
    1930, 1557
  ) 
  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.00132

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.16"
    },
    "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": 27,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5750,7013,5739,5727,4432,1553,2574,1,228,247,944,478,8,985,3754,525,2478,1552,10284,6151,1274,908,1930,1557))",
        "cost_info": {
          "read_cost": "17.62",
          "eval_cost": "0.54",
          "prefix_cost": "18.16",
          "data_read_per_join": "129"
        },
        "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
1 1450000.00000000
8 1400000.00000000
228 2200000.00000000
247 97000.00000000
478 1055000.00000000
525 1675000.00000000
908 209000.00000000
944 1395000.00000000
985 1205000.00000000
1274 337000.00000000
1552 95000.00000000
1553 112000.00000000
1557 137000.00000000
1930 2442000.00000000
2478 850000.00000000
2574 337000.00000000
3754 1390000.00000000
4432 500000.00000000
5727 2005000.00000000
5739 1300000.00000000
5750 1655000.00000000
6151 134000.00000000
7013 2149000.00000000
10284 880000.00000000