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 (
    9743, 10015, 10017, 9721, 9748, 9906, 
    10018, 10331, 10019, 10338, 9761, 10001, 
    9752, 10362, 9722, 9745, 10337, 10000, 
    9746, 10002, 9720, 9998, 10003, 9755, 
    9995, 9999, 9763, 9912, 10342, 9911, 
    9992, 10014, 10306, 10334, 9900, 10330, 
    9910, 10301, 9759, 9905, 10300, 10304, 
    10307, 10308, 10332, 10340, 9750, 9867, 
    10302, 10333, 10336, 10341, 10343, 
    10363, 9757, 9902, 9908, 9984, 9990, 
    10016, 10305, 10329, 10335, 10339, 
    9873, 9891, 9889, 9893, 9987, 10303, 
    9896, 9899, 9986
  ) 
  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.00166

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "80.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": 139,
        "rows_produced_per_join": 27,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9743,10015,10017,9721,9748,9906,10018,10331,10019,10338,9761,10001,9752,10362,9722,9745,10337,10000,9746,10002,9720,9998,10003,9755,9995,9999,9763,9912,10342,9911,9992,10014,10306,10334,9900,10330,9910,10301,9759,9905,10300,10304,10307,10308,10332,10340,9750,9867,10302,10333,10336,10341,10343,10363,9757,9902,9908,9984,9990,10016,10305,10329,10335,10339,9873,9891,9889,9893,9987,10303,9896,9899,9986))",
        "cost_info": {
          "read_cost": "78.03",
          "eval_cost": "2.78",
          "prefix_cost": "80.81",
          "data_read_per_join": "666"
        },
        "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
9720 266000.00000000
9721 266000.00000000
9722 309000.00000000
9743 280000.00000000
9745 309000.00000000
9746 309000.00000000
9748 266000.00000000
9750 309000.00000000
9752 238000.00000000
9755 323000.00000000
9757 266000.00000000
9759 323000.00000000
9761 323000.00000000
9763 323000.00000000
9867 351000.00000000
9873 380000.00000000
9889 323000.00000000
9891 309000.00000000
9893 309000.00000000
9896 309000.00000000
9899 185000.00000000
9900 181000.00000000
9902 195000.00000000
9905 209000.00000000
9906 209000.00000000
9908 235000.00000000
9910 238000.00000000
9911 238000.00000000
9912 238000.00000000
9984 218000.00000000
9986 181000.00000000
9987 522000.00000000
9990 579000.00000000
9992 451000.00000000
9995 465000.00000000
9998 444000.00000000
9999 493000.00000000
10000 564000.00000000
10001 391000.00000000
10002 394000.00000000
10003 422000.00000000
10014 209000.00000000
10015 209000.00000000
10016 209000.00000000
10017 209000.00000000
10018 272000.00000000
10019 263000.00000000
10300 277000.00000000
10301 400000.00000000
10302 369000.00000000
10303 251000.00000000
10304 436000.00000000
10305 336000.00000000
10306 385000.00000000
10307 965000.00000000
10308 965000.00000000
10329 820000.00000000
10330 995000.00000000
10331 943000.00000000
10332 1032000.00000000
10333 1224000.00000000
10334 322000.00000000
10335 322000.00000000
10336 322000.00000000
10337 381000.00000000
10338 336000.00000000
10339 440000.00000000
10340 521000.00000000
10341 362000.00000000
10342 371000.00000000
10343 440000.00000000
10362 507000.00000000
10363 625000.00000000