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 (
    353188, 353318, 353331, 353617, 355564, 
    355846, 356171, 357164, 358109, 358551, 
    359221, 350136, 350192, 351120, 351320, 
    352533, 352856, 355248, 356333, 356751, 
    357198, 357353, 357669, 349871, 349936, 
    350304, 350336, 350478, 352942, 359007, 
    359070, 349971, 350141, 350173, 351410, 
    352752, 353252, 353945, 354249, 358936, 
    350090, 350297, 352128, 354231, 354565, 
    357954, 350275, 354640, 356880, 356885, 
    351582, 352247, 353247, 356226, 349967, 
    351680, 354699, 354757, 359389, 350367, 
    351674, 352538, 354320, 354556, 354711, 
    355153, 355407, 356163, 356236, 356301, 
    356505, 351574, 353267, 353339, 354195, 
    355279, 355870, 357005, 357564, 358180, 
    359182, 352545, 353292, 356837, 353325, 
    353484, 353766, 357084, 351511, 352208, 
    352677, 353218, 355864, 356690, 357711, 
    350036, 350503, 351579, 355538, 355784
  ) 
  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.00303

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 (353188,353318,353331,353617,355564,355846,356171,357164,358109,358551,359221,350136,350192,351120,351320,352533,352856,355248,356333,356751,357198,357353,357669,349871,349936,350304,350336,350478,352942,359007,359070,349971,350141,350173,351410,352752,353252,353945,354249,358936,350090,350297,352128,354231,354565,357954,350275,354640,356880,356885,351582,352247,353247,356226,349967,351680,354699,354757,359389,350367,351674,352538,354320,354556,354711,355153,355407,356163,356236,356301,356505,351574,353267,353339,354195,355279,355870,357005,357564,358180,359182,352545,353292,356837,353325,353484,353766,357084,351511,352208,352677,353218,355864,356690,357711,350036,350503,351579,355538,355784)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
349871 4.22000000
349936 3.54000000
349967 45.36000000
349971 17.48000000
350036 3.20000000
350090 12.89000000
350136 2.86000000
350141 11.02000000
350173 1.22000000
350192 2.86000000
350275 11.70000000
350297 7.11000000
350304 28.14000000
350336 10.00000000
350367 3.54000000
350478 21.85000000
350503 8.98000000
351120 17.99000000
351320 26.95000000
351410 49.05000000
351511 43.95000000
351574 0.82000000
351579 1.33000000
351582 1.22000000
351674 8.30000000
351680 9.95000000
352128 8.13000000
352208 59.25000000
352247 3.54000000
352533 17.94000000
352538 123.85000000
352545 17.94000000
352677 20.15000000
352752 23.04000000
352856 84.75000000
352942 157.85000000
353188 253.05000000
353218 93.25000000
353247 166.35000000
353252 144.25000000
353267 10.85000000
353292 100.05000000
353318 372.05000000
353325 101.75000000
353331 127.25000000
353339 331.25000000
353484 59.25000000
353617 227.55000000
353766 69.45000000
353945 195.25000000
354195 49.05000000
354231 188.45000000
354249 60.95000000
354320 7.62000000
354556 74.55000000
354565 113.65000000
354640 15.10000000
354699 79.65000000
354711 220.75000000
354757 1.28000000
355153 7.96000000
355248 6.43000000
355279 25.47000000
355407 139.15000000
355538 10.17000000
355564 1.50000000
355784 7.79000000
355846 3.54000000
355864 3.54000000
355870 6.43000000
356163 9.15000000
356171 2.45000000
356226 59.25000000
356236 26.15000000
356301 16.29000000
356333 35.45000000
356505 1.22000000
356690 23.55000000
356751 8.98000000
356837 25.93000000
356880 110.25000000
356885 8.13000000
357005 1.33000000
357084 2.18000000
357164 2.86000000
357198 14.03000000
357353 2.86000000
357564 6.60000000
357669 6.43000000
357711 4.22000000
357954 1.33000000
358109 1.33000000
358180 3.20000000
358551 50.75000000
358936 3.71000000
359007 6.07000000
359070 9.83000000
359182 1.29000000
359221 8.30000000
359389 6.43000000