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 (
    356117, 359227, 359292, 350167, 350940, 
    352035, 352746, 354264, 350874, 351272, 
    353847, 354164, 356786, 359059, 350490, 
    354138, 355700, 356771, 358492, 350153, 
    350877, 354373, 350107, 353043, 355763, 
    356235, 356729, 356882, 354807, 355854, 
    349681, 350191, 351952, 352553, 357881, 
    359100, 350711, 351238, 351466, 351490, 
    351956, 353017, 353063, 355767, 350028, 
    351230, 353612, 356950, 357344, 358081, 
    353584, 355704, 358368, 353613, 351326, 
    351854, 353449, 355920, 358883, 351893, 
    351902, 351906, 354434, 356635, 356894, 
    358817, 353894, 355224, 358402, 354579, 
    355858, 357962, 350556, 353124, 352870, 
    353751, 357281, 357870, 352738, 356044, 
    358751, 357842, 359236, 350769, 352961, 
    354903, 357746, 350988, 351112, 352338, 
    352879, 353501, 353630, 354298, 357826, 
    353453, 354602, 358074, 350409, 352863
  ) 
  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.00149

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 (356117,359227,359292,350167,350940,352035,352746,354264,350874,351272,353847,354164,356786,359059,350490,354138,355700,356771,358492,350153,350877,354373,350107,353043,355763,356235,356729,356882,354807,355854,349681,350191,351952,352553,357881,359100,350711,351238,351466,351490,351956,353017,353063,355767,350028,351230,353612,356950,357344,358081,353584,355704,358368,353613,351326,351854,353449,355920,358883,351893,351902,351906,354434,356635,356894,358817,353894,355224,358402,354579,355858,357962,350556,353124,352870,353751,357281,357870,352738,356044,358751,357842,359236,350769,352961,354903,357746,350988,351112,352338,352879,353501,353630,354298,357826,353453,354602,358074,350409,352863)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
349681 1.26000000
350028 2.45000000
350107 2.45000000
350153 1.12000000
350167 2.86000000
350191 6.26000000
350409 4.90000000
350490 40.55000000
350556 32.05000000
350711 8.13000000
350769 6.94000000
350874 6.26000000
350877 13.57000000
350940 11.31000000
350988 3.37000000
351112 25.25000000
351230 20.15000000
351238 10.51000000
351272 18.45000000
351326 37.15000000
351466 3.71000000
351490 40.55000000
351854 45.65000000
351893 8.30000000
351902 7.62000000
351906 8.47000000
351952 9.66000000
351956 13.35000000
352035 2.18000000
352338 35.45000000
352553 18.67000000
352738 21.22000000
352746 23.55000000
352863 157.85000000
352870 111.95000000
352879 64.35000000
352961 171.45000000
353017 62.65000000
353043 100.05000000
353063 93.25000000
353124 288.75000000
353449 66.05000000
353453 110.25000000
353501 71.15000000
353584 84.75000000
353612 222.45000000
353613 239.45000000
353630 185.05000000
353751 66.05000000
353847 179.95000000
353894 67.75000000
354138 62.65000000
354164 66.05000000
354264 18.45000000
354298 42.25000000
354373 21.85000000
354434 21.85000000
354579 28.65000000
354602 12.38000000
354807 30.35000000
354903 3.88000000
355224 4.73000000
355700 6.60000000
355704 15.10000000
355763 8.47000000
355767 15.05000000
355854 6.09000000
355858 5.07000000
355920 14.08000000
356044 11.02000000
356117 13.57000000
356235 26.15000000
356635 1.22000000
356729 25.98000000
356771 19.18000000
356786 14.42000000
356882 6.43000000
356894 6.26000000
356950 50.75000000
357281 2.52000000
357344 17.94000000
357746 6.77000000
357826 7.79000000
357842 9.32000000
357870 6.77000000
357881 1.22000000
357962 1.33000000
358074 5.41000000
358081 9.66000000
358368 42.25000000
358402 24.57000000
358492 6.60000000
358751 15.61000000
358817 17.31000000
358883 10.85000000
359059 16.75000000
359100 4.05000000
359227 4.39000000
359236 5.58000000
359292 2.45000000