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 (
    430994, 430999, 431345, 430634, 430645, 
    430714, 430862, 430885, 430887, 430992, 
    431338, 430656, 430738, 430761, 430865, 
    431054, 431316, 430626, 430870, 431192, 
    430708, 430797, 430853, 431019, 431326, 
    431365, 430677, 430749, 431061, 430802, 
    430846, 430873, 430881, 431011, 431024, 
    431242, 430960, 430993, 431039, 431322, 
    430836, 430936, 431003, 431052, 431395, 
    431429, 430704, 430707, 430905, 430841, 
    430969, 431020, 431022, 431091, 431248, 
    431264, 430810, 431051, 431315, 431503, 
    430652, 430861, 430940, 430984, 431113, 
    431178, 431193, 431247, 431487, 431006, 
    431200, 431301, 431426, 431439, 435509, 
    430782, 430837, 431074, 431339, 430816, 
    430926, 431252, 430641, 430794, 430968, 
    431275, 430788, 430879, 431171, 431334, 
    430661, 430811, 431098, 431055, 430742, 
    430839, 430675, 430800, 430805, 430855
  ) 
  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.00160

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 (430994,430999,431345,430634,430645,430714,430862,430885,430887,430992,431338,430656,430738,430761,430865,431054,431316,430626,430870,431192,430708,430797,430853,431019,431326,431365,430677,430749,431061,430802,430846,430873,430881,431011,431024,431242,430960,430993,431039,431322,430836,430936,431003,431052,431395,431429,430704,430707,430905,430841,430969,431020,431022,431091,431248,431264,430810,431051,431315,431503,430652,430861,430940,430984,431113,431178,431193,431247,431487,431006,431200,431301,431426,431439,435509,430782,430837,431074,431339,430816,430926,431252,430641,430794,430968,431275,430788,430879,431171,431334,430661,430811,431098,431055,430742,430839,430675,430800,430805,430855)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
430626 25.50000000
430634 11.50000000
430641 11.50000000
430645 13.50000000
430652 31.50000000
430656 31.50000000
430661 31.50000000
430675 31.50000000
430677 29.90000000
430704 29.90000000
430707 29.90000000
430708 29.90000000
430714 29.90000000
430738 31.50000000
430742 31.50000000
430749 31.50000000
430761 34.50000000
430782 34.50000000
430788 34.50000000
430794 34.50000000
430797 34.50000000
430800 34.50000000
430802 34.50000000
430805 34.50000000
430810 34.50000000
430811 34.50000000
430816 29.90000000
430836 29.90000000
430837 29.90000000
430839 29.90000000
430841 29.90000000
430846 29.90000000
430853 29.90000000
430855 29.90000000
430861 29.90000000
430862 29.90000000
430865 29.90000000
430870 29.90000000
430873 29.90000000
430879 29.90000000
430881 29.90000000
430885 31.50000000
430887 31.50000000
430905 45.50000000
430926 31.50000000
430936 31.50000000
430940 31.50000000
430960 31.50000000
430968 31.50000000
430969 31.50000000
430984 31.50000000
430992 31.50000000
430993 31.50000000
430994 31.50000000
430999 31.50000000
431003 31.50000000
431006 31.50000000
431011 31.50000000
431019 31.50000000
431020 31.50000000
431022 31.50000000
431024 31.50000000
431039 29.90000000
431051 29.90000000
431052 29.90000000
431054 29.90000000
431055 29.90000000
431061 29.90000000
431074 28.50000000
431091 31.50000000
431098 31.50000000
431113 31.50000000
431171 26.90000000
431178 26.90000000
431192 26.90000000
431193 29.90000000
431200 29.90000000
431242 31.50000000
431247 31.50000000
431248 31.50000000
431252 36.50000000
431264 54.50000000
431275 36.50000000
431301 45.50000000
431315 49.90000000
431316 49.90000000
431322 49.90000000
431326 67.90000000
431334 67.90000000
431338 67.90000000
431339 40.90000000
431345 40.90000000
431365 49.90000000
431395 49.90000000
431426 58.90000000
431429 58.90000000
431439 34.50000000
431487 34.50000000
431503 40.90000000
435509 0.00000000