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 (
    430926, 430940, 431264, 431301, 431339, 
    431426, 435509, 430782, 430879, 431020, 
    431022, 431193, 430816, 431275, 339726, 
    430661, 430794, 431171, 430641, 430788, 
    430811, 430839, 431334, 339825, 430675, 
    430742, 430863, 430968, 431055, 430953, 
    431428, 430805, 430894, 431005, 431098, 
    431244, 339855, 339718, 430688, 430755, 
    430800, 430826, 430917, 430952, 430979, 
    431006, 431262, 430713, 430874, 431028, 
    431336, 431504, 430778, 430827, 430852, 
    430855, 430856, 430931, 430991, 431000, 
    431027, 431101, 431451, 431177, 431184, 
    431358, 430864, 431469, 430694, 430780, 
    431234, 431368, 339675, 430671, 430918, 
    430995, 431342, 430897, 431420, 430702, 
    430706, 430840, 430878, 430888, 430977, 
    430990, 431357, 339597, 430666, 431010, 
    431344, 430667, 430871, 431297, 431381, 
    339782, 381709, 430692, 430997, 431025
  ) 
  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.00116

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "280.31"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "usergroup",
        "used_key_parts": [
          "product_id",
          "usergroup_id",
          "lower_limit"
        ],
        "key_length": "9",
        "rows_examined_per_scan": 200,
        "rows_produced_per_join": 200,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "240.31",
          "eval_cost": "40.00",
          "prefix_cost": "280.31",
          "data_read_per_join": "12K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`webmarco`.`cscart_product_prices`.`lower_limit` = 1) and (`webmarco`.`cscart_product_prices`.`product_id` in (430926,430940,431264,431301,431339,431426,435509,430782,430879,431020,431022,431193,430816,431275,339726,430661,430794,431171,430641,430788,430811,430839,431334,339825,430675,430742,430863,430968,431055,430953,431428,430805,430894,431005,431098,431244,339855,339718,430688,430755,430800,430826,430917,430952,430979,431006,431262,430713,430874,431028,431336,431504,430778,430827,430852,430855,430856,430931,430991,431000,431027,431101,431451,431177,431184,431358,430864,431469,430694,430780,431234,431368,339675,430671,430918,430995,431342,430897,431420,430702,430706,430840,430878,430888,430977,430990,431357,339597,430666,431010,431344,430667,430871,431297,431381,339782,381709,430692,430997,431025)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
339597 15.00000000
339675 35.00000000
339718 14.00000000
339726 10.00000000
339782 21.00000000
339825 30.00000000
339855 12.00000000
381709 60.00000000
430641 11.50000000
430661 31.50000000
430666 31.50000000
430667 31.50000000
430671 31.50000000
430675 31.50000000
430688 29.90000000
430692 29.90000000
430694 29.90000000
430702 29.90000000
430706 29.90000000
430713 29.90000000
430742 31.50000000
430755 31.50000000
430778 34.50000000
430780 34.50000000
430782 34.50000000
430788 34.50000000
430794 34.50000000
430800 34.50000000
430805 34.50000000
430811 34.50000000
430816 29.90000000
430826 29.90000000
430827 29.90000000
430839 29.90000000
430840 29.90000000
430852 29.90000000
430855 29.90000000
430856 29.90000000
430863 29.90000000
430864 29.90000000
430871 29.90000000
430874 29.90000000
430878 29.90000000
430879 29.90000000
430888 31.50000000
430894 31.50000000
430897 45.50000000
430917 45.50000000
430918 45.50000000
430926 31.50000000
430931 31.50000000
430940 31.50000000
430952 31.50000000
430953 31.50000000
430968 31.50000000
430977 31.50000000
430979 31.50000000
430990 31.50000000
430991 31.50000000
430995 31.50000000
430997 31.50000000
431000 31.50000000
431005 31.50000000
431006 31.50000000
431010 31.50000000
431020 31.50000000
431022 31.50000000
431025 31.50000000
431027 31.50000000
431028 31.50000000
431055 29.90000000
431098 31.50000000
431101 31.50000000
431171 26.90000000
431177 26.90000000
431184 26.90000000
431193 29.90000000
431234 31.50000000
431244 31.50000000
431262 54.50000000
431264 54.50000000
431275 36.50000000
431297 45.50000000
431301 45.50000000
431334 67.90000000
431336 67.90000000
431339 40.90000000
431342 40.90000000
431344 40.90000000
431357 40.90000000
431358 49.90000000
431368 49.90000000
431381 45.50000000
431420 58.90000000
431426 58.90000000
431428 58.90000000
431451 29.90000000
431469 31.50000000
431504 63.50000000
435509 0.00000000