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 (
    430838, 431063, 430904, 430909, 431008, 
    431183, 339599, 430695, 431159, 339845, 
    339816, 430815, 430832, 430914, 339723, 
    430939, 339582, 431356, 430880, 430891, 
    431197, 430893, 430913, 430923, 431135, 
    339839, 430662, 430930, 431089, 431136, 
    339486, 381712, 381704, 430676, 430787, 
    430847, 430980, 431078, 431226, 431393, 
    430854, 430806, 431142, 430672, 430633, 
    430760, 430869, 431119, 431174, 430829, 
    430976, 431111, 431327, 430844, 431123, 
    431325, 339727, 339594, 430644, 430772, 
    431031, 430663, 430899, 430981, 431023, 
    431088, 339765, 430753, 430845, 431245, 
    430796, 430801, 430876, 430958, 431032, 
    431093, 431238, 431467, 430712, 430884, 
    431062, 431251, 339762, 430898, 431121, 
    431167, 430851, 430698, 430927, 430730, 
    431291, 431423, 430651, 431314, 339691, 
    430883, 381713, 430685, 430722, 430809
  ) 
  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.00225

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 (430838,431063,430904,430909,431008,431183,339599,430695,431159,339845,339816,430815,430832,430914,339723,430939,339582,431356,430880,430891,431197,430893,430913,430923,431135,339839,430662,430930,431089,431136,339486,381712,381704,430676,430787,430847,430980,431078,431226,431393,430854,430806,431142,430672,430633,430760,430869,431119,431174,430829,430976,431111,431327,430844,431123,431325,339727,339594,430644,430772,431031,430663,430899,430981,431023,431088,339765,430753,430845,431245,430796,430801,430876,430958,431032,431093,431238,431467,430712,430884,431062,431251,339762,430898,431121,431167,430851,430698,430927,430730,431291,431423,430651,431314,339691,430883,381713,430685,430722,430809)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
339486 23.00000000
339582 6.50000000
339594 9.00000000
339599 20.00000000
339691 5.00000000
339723 9.00000000
339727 11.00000000
339762 70.00000000
339765 75.00000000
339816 75.00000000
339839 39.00000000
339845 112.00000000
381704 0.00000000
381712 60.00000000
381713 80.00000000
430633 11.50000000
430644 13.50000000
430651 13.50000000
430662 31.50000000
430663 31.50000000
430672 31.50000000
430676 29.90000000
430685 29.90000000
430695 29.90000000
430698 29.90000000
430712 29.90000000
430722 31.50000000
430730 31.50000000
430753 31.50000000
430760 34.50000000
430772 34.50000000
430787 34.50000000
430796 34.50000000
430801 34.50000000
430806 34.50000000
430809 34.50000000
430815 29.90000000
430829 29.90000000
430832 29.90000000
430838 29.90000000
430844 29.90000000
430845 29.90000000
430847 29.90000000
430851 29.90000000
430854 29.90000000
430869 29.90000000
430876 29.90000000
430880 29.90000000
430883 31.50000000
430884 31.50000000
430891 31.50000000
430893 31.50000000
430898 45.50000000
430899 45.50000000
430904 45.50000000
430909 45.50000000
430913 45.50000000
430914 45.50000000
430923 31.50000000
430927 31.50000000
430930 31.50000000
430939 31.50000000
430958 31.50000000
430976 31.50000000
430980 31.50000000
430981 31.50000000
431008 31.50000000
431023 31.50000000
431031 31.50000000
431032 31.50000000
431062 29.90000000
431063 29.90000000
431078 26.50000000
431088 28.50000000
431089 31.50000000
431093 31.50000000
431111 31.50000000
431119 17.90000000
431121 17.90000000
431123 17.90000000
431135 29.90000000
431136 29.90000000
431142 29.90000000
431159 31.50000000
431167 26.90000000
431174 26.90000000
431183 26.90000000
431197 29.90000000
431226 31.50000000
431238 31.50000000
431245 31.50000000
431251 36.50000000
431291 36.50000000
431314 45.50000000
431325 67.90000000
431327 67.90000000
431356 40.90000000
431393 49.90000000
431423 58.90000000
431467 31.50000000