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 (
    394196, 431190, 430574, 431092, 431106, 
    431147, 430849, 431162, 431128, 431099, 
    431132, 431202, 430637, 430639, 431096, 
    431168, 431141, 431153, 431137, 431155, 
    431033, 431130, 430911, 430640, 431134, 
    431125, 431154, 431090, 431146, 431065, 
    431067, 431187, 431048, 431094, 430697, 
    430767, 431050, 431104, 430745, 431124, 
    431117, 431191, 431157, 431160, 430681, 
    431116, 430743, 430850, 430908, 431084, 
    431107, 430998, 431026, 430655, 430744, 
    431100, 431115, 430915, 430916, 430636, 
    430924, 431195, 430747, 430803, 431176, 
    431203, 430748, 431204, 431133, 430648, 
    431196, 430823, 431158, 431199, 431122, 
    430903, 430848, 431139, 430831, 431150, 
    430665, 430696, 431145, 431102, 430771, 
    430907, 430649, 430646, 430647, 430912, 
    430935, 430638, 430766, 431097, 431151, 
    430821, 430824, 431359, 430857, 431201
  ) 
  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.00223

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 (394196,431190,430574,431092,431106,431147,430849,431162,431128,431099,431132,431202,430637,430639,431096,431168,431141,431153,431137,431155,431033,431130,430911,430640,431134,431125,431154,431090,431146,431065,431067,431187,431048,431094,430697,430767,431050,431104,430745,431124,431117,431191,431157,431160,430681,431116,430743,430850,430908,431084,431107,430998,431026,430655,430744,431100,431115,430915,430916,430636,430924,431195,430747,430803,431176,431203,430748,431204,431133,430648,431196,430823,431158,431199,431122,430903,430848,431139,430831,431150,430665,430696,431145,431102,430771,430907,430649,430646,430647,430912,430935,430638,430766,431097,431151,430821,430824,431359,430857,431201)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
394196 0.00000000
430574 102.00000000
430636 11.50000000
430637 11.50000000
430638 11.50000000
430639 11.50000000
430640 11.50000000
430646 13.50000000
430647 13.50000000
430648 13.50000000
430649 13.50000000
430655 31.50000000
430665 31.50000000
430681 29.90000000
430696 29.90000000
430697 29.90000000
430743 31.50000000
430744 31.50000000
430745 31.50000000
430747 31.50000000
430748 31.50000000
430766 34.50000000
430767 34.50000000
430771 34.50000000
430803 34.50000000
430821 29.90000000
430823 29.90000000
430824 29.90000000
430831 29.90000000
430848 29.90000000
430849 29.90000000
430850 29.90000000
430857 29.90000000
430903 45.50000000
430907 45.50000000
430908 45.50000000
430911 45.50000000
430912 45.50000000
430915 45.50000000
430916 45.50000000
430924 31.50000000
430935 31.50000000
430998 31.50000000
431026 31.50000000
431033 31.50000000
431048 29.90000000
431050 29.90000000
431065 29.90000000
431067 29.90000000
431084 26.90000000
431090 31.50000000
431092 31.50000000
431094 31.50000000
431096 31.50000000
431097 31.50000000
431099 31.50000000
431100 31.50000000
431102 31.50000000
431104 31.50000000
431106 31.50000000
431107 31.50000000
431115 31.50000000
431116 31.50000000
431117 31.50000000
431122 17.90000000
431124 17.90000000
431125 17.90000000
431128 17.90000000
431130 17.90000000
431132 17.90000000
431133 17.90000000
431134 29.90000000
431137 29.90000000
431139 29.90000000
431141 29.90000000
431145 29.90000000
431146 29.90000000
431147 29.90000000
431150 31.50000000
431151 31.50000000
431153 31.50000000
431154 31.50000000
431155 31.50000000
431157 31.50000000
431158 31.50000000
431160 31.50000000
431162 31.50000000
431168 26.90000000
431176 26.90000000
431187 26.90000000
431190 26.90000000
431191 26.90000000
431195 29.90000000
431196 29.90000000
431199 29.90000000
431201 29.90000000
431202 29.90000000
431203 29.90000000
431204 29.90000000
431359 49.90000000