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 (
    431328, 339841, 430740, 430830, 430961, 
    430762, 430882, 431186, 431239, 431283, 
    430735, 430765, 430786, 430919, 431410, 
    431500, 435510, 339604, 430686, 431303, 
    430643, 431182, 431219, 431230, 431279, 
    431497, 430711, 431231, 431274, 431353, 
    431405, 431498, 431060, 430701, 430732, 
    430792, 430659, 430957, 430965, 431175, 
    431337, 431422, 431495, 431243, 431290, 
    431434, 430954, 431076, 431166, 430642, 
    430983, 431249, 431260, 431380, 431105, 
    431287, 431304, 431409, 431480, 431004, 
    431311, 431346, 430814, 430964, 430966, 
    431324, 431458, 430754, 430759, 430963, 
    431015, 431071, 430781, 430798, 431002, 
    431352, 431419, 431452, 431453, 381710, 
    430750, 431079, 431408, 431188, 431217, 
    431362, 431394, 431481, 430705, 431273, 
    431407, 430944, 431009, 431222, 430669, 
    430700, 431001, 431057, 430699, 430773
  ) 
  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.00236

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 (431328,339841,430740,430830,430961,430762,430882,431186,431239,431283,430735,430765,430786,430919,431410,431500,435510,339604,430686,431303,430643,431182,431219,431230,431279,431497,430711,431231,431274,431353,431405,431498,431060,430701,430732,430792,430659,430957,430965,431175,431337,431422,431495,431243,431290,431434,430954,431076,431166,430642,430983,431249,431260,431380,431105,431287,431304,431409,431480,431004,431311,431346,430814,430964,430966,431324,431458,430754,430759,430963,431015,431071,430781,430798,431002,431352,431419,431452,431453,381710,430750,431079,431408,431188,431217,431362,431394,431481,430705,431273,431407,430944,431009,431222,430669,430700,431001,431057,430699,430773)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
339604 6.00000000
339841 12.00000000
381710 60.00000000
430642 11.50000000
430643 13.50000000
430659 31.50000000
430669 31.50000000
430686 29.90000000
430699 29.90000000
430700 29.90000000
430701 29.90000000
430705 29.90000000
430711 29.90000000
430732 31.50000000
430735 31.50000000
430740 31.50000000
430750 31.50000000
430754 31.50000000
430759 34.50000000
430762 34.50000000
430765 34.50000000
430773 34.50000000
430781 34.50000000
430786 34.50000000
430792 34.50000000
430798 34.50000000
430814 34.50000000
430830 29.90000000
430882 29.90000000
430919 26.90000000
430944 31.50000000
430954 31.50000000
430957 31.50000000
430961 31.50000000
430963 31.50000000
430964 31.50000000
430965 31.50000000
430966 31.50000000
430983 31.50000000
431001 31.50000000
431002 31.50000000
431004 31.50000000
431009 31.50000000
431015 31.50000000
431057 29.90000000
431060 29.90000000
431071 29.90000000
431076 28.50000000
431079 26.50000000
431105 31.50000000
431166 26.90000000
431175 26.90000000
431182 26.90000000
431186 26.90000000
431188 26.90000000
431217 29.90000000
431219 29.90000000
431222 29.90000000
431230 31.50000000
431231 31.50000000
431239 31.50000000
431243 31.50000000
431249 36.50000000
431260 36.50000000
431273 36.50000000
431274 36.50000000
431279 63.50000000
431283 36.50000000
431287 36.50000000
431290 36.50000000
431303 45.50000000
431304 45.50000000
431311 45.50000000
431324 67.90000000
431328 67.90000000
431337 67.90000000
431346 40.90000000
431352 40.90000000
431353 40.90000000
431362 49.90000000
431380 45.50000000
431394 49.90000000
431405 49.90000000
431407 49.90000000
431408 49.90000000
431409 49.90000000
431410 49.90000000
431419 58.90000000
431422 58.90000000
431434 34.50000000
431452 29.90000000
431453 29.90000000
431458 29.90000000
431480 34.50000000
431481 34.50000000
431495 34.50000000
431497 34.50000000
431498 34.50000000
431500 73.90000000
435510 0.00000000