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 (
    430866, 430910, 431046, 431131, 431291, 
    381713, 339691, 430896, 430932, 431185, 
    431220, 431333, 431501, 430631, 430653, 
    430730, 430887, 430900, 431072, 431205, 
    431345, 430885, 430999, 431338, 430634, 
    430645, 430761, 430862, 430937, 430992, 
    431054, 431140, 431316, 381711, 339733, 
    339804, 430708, 430870, 431077, 431326, 
    339600, 339781, 430677, 430738, 430994, 
    339831, 430714, 430749, 430797, 430853, 
    430865, 430881, 431365, 430947, 431024, 
    431192, 431463, 430802, 430873, 430936, 
    431242, 430656, 430993, 431395, 431429, 
    339488, 430846, 430960, 431019, 431039, 
    431061, 430626, 430707, 430836, 430969, 
    431003, 431011, 431052, 431322, 430652, 
    430704, 430841, 430905, 430984, 431091, 
    431248, 431315, 430810, 431051, 431113, 
    431503, 430837, 430861, 431074, 431200, 
    431247, 431439, 431178, 431252, 431487
  ) 
  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.00198

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 (430866,430910,431046,431131,431291,381713,339691,430896,430932,431185,431220,431333,431501,430631,430653,430730,430887,430900,431072,431205,431345,430885,430999,431338,430634,430645,430761,430862,430937,430992,431054,431140,431316,381711,339733,339804,430708,430870,431077,431326,339600,339781,430677,430738,430994,339831,430714,430749,430797,430853,430865,430881,431365,430947,431024,431192,431463,430802,430873,430936,431242,430656,430993,431395,431429,339488,430846,430960,431019,431039,431061,430626,430707,430836,430969,431003,431011,431052,431322,430652,430704,430841,430905,430984,431091,431248,431315,430810,431051,431113,431503,430837,430861,431074,431200,431247,431439,431178,431252,431487)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
339488 75.00000000
339600 11.00000000
339691 5.00000000
339733 10.00000000
339781 16.00000000
339804 40.00000000
339831 79.00000000
381711 60.00000000
381713 80.00000000
430626 25.50000000
430631 11.50000000
430634 11.50000000
430645 13.50000000
430652 31.50000000
430653 31.50000000
430656 31.50000000
430677 29.90000000
430704 29.90000000
430707 29.90000000
430708 29.90000000
430714 29.90000000
430730 31.50000000
430738 31.50000000
430749 31.50000000
430761 34.50000000
430797 34.50000000
430802 34.50000000
430810 34.50000000
430836 29.90000000
430837 29.90000000
430841 29.90000000
430846 29.90000000
430853 29.90000000
430861 29.90000000
430862 29.90000000
430865 29.90000000
430866 29.90000000
430870 29.90000000
430873 29.90000000
430881 29.90000000
430885 31.50000000
430887 31.50000000
430896 45.50000000
430900 45.50000000
430905 45.50000000
430910 45.50000000
430932 31.50000000
430936 31.50000000
430937 31.50000000
430947 31.50000000
430960 31.50000000
430969 31.50000000
430984 31.50000000
430992 31.50000000
430993 31.50000000
430994 31.50000000
430999 31.50000000
431003 31.50000000
431011 31.50000000
431019 31.50000000
431024 31.50000000
431039 29.90000000
431046 29.90000000
431051 29.90000000
431052 29.90000000
431054 29.90000000
431061 29.90000000
431072 28.50000000
431074 28.50000000
431077 26.50000000
431091 31.50000000
431113 31.50000000
431131 17.90000000
431140 29.90000000
431178 26.90000000
431185 26.90000000
431192 26.90000000
431200 29.90000000
431205 29.90000000
431220 29.90000000
431242 31.50000000
431247 31.50000000
431248 31.50000000
431252 36.50000000
431291 36.50000000
431315 49.90000000
431316 49.90000000
431322 49.90000000
431326 67.90000000
431333 67.90000000
431338 67.90000000
431345 40.90000000
431365 49.90000000
431395 49.90000000
431429 58.90000000
431439 34.50000000
431463 31.50000000
431487 34.50000000
431501 73.90000000
431503 40.90000000