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 (
    349736, 349943, 358420, 355716, 351470, 
    352364, 354432, 354737, 358745, 349826, 
    352111, 352597, 354793, 355136, 358867, 
    359065, 352613, 354825, 357476, 354601, 
    356325, 359419, 351436, 352333, 354866, 
    355987, 356197, 351538, 351595, 354545, 
    355124, 355811, 358485, 358866, 349896, 
    351591, 352307, 355889, 352480, 352507, 
    356296, 356615, 357642, 358415, 351551, 
    355742, 357553, 359053, 351448, 352528, 
    354847, 355899, 356640, 359091, 352724, 
    354785, 352671, 358340, 352149, 352672, 
    353117, 357503, 352217, 352560, 356354, 
    356586, 352556, 355069, 355667, 352670, 
    349905, 356488, 358706, 349816, 351266, 
    352110, 352212, 352475, 352344, 352504, 
    352721, 354787, 355097, 355903, 355937, 
    356238, 356448, 351347, 351354, 351820, 
    352134, 352727, 354376, 356478, 358976, 
    359011, 352476, 352557, 352594, 352756
  ) 
  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.00306

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 (349736,349943,358420,355716,351470,352364,354432,354737,358745,349826,352111,352597,354793,355136,358867,359065,352613,354825,357476,354601,356325,359419,351436,352333,354866,355987,356197,351538,351595,354545,355124,355811,358485,358866,349896,351591,352307,355889,352480,352507,356296,356615,357642,358415,351551,355742,357553,359053,351448,352528,354847,355899,356640,359091,352724,354785,352671,358340,352149,352672,353117,357503,352217,352560,356354,356586,352556,355069,355667,352670,349905,356488,358706,349816,351266,352110,352212,352475,352344,352504,352721,354787,355097,355903,355937,356238,356448,351347,351354,351820,352134,352727,354376,356478,358976,359011,352476,352557,352594,352756)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
349736 1.33000000
349816 1.50000000
349826 1.50000000
349896 8.13000000
349905 5.07000000
349943 7.79000000
351266 88.15000000
351347 9.66000000
351354 20.15000000
351436 1.67000000
351448 2.45000000
351470 5.07000000
351538 1.22000000
351551 1.22000000
351591 0.82000000
351595 0.82000000
351820 43.95000000
352110 4.73000000
352111 4.22000000
352134 1.22000000
352149 3.37000000
352212 10.17000000
352217 6.60000000
352307 168.05000000
352333 11.19000000
352344 45.65000000
352364 83.05000000
352475 67.75000000
352476 59.25000000
352480 101.75000000
352504 47.35000000
352507 24.57000000
352528 17.94000000
352556 13.57000000
352557 59.25000000
352560 62.65000000
352594 42.25000000
352597 24.57000000
352613 33.75000000
352670 8.98000000
352671 13.06000000
352672 11.65000000
352721 15.78000000
352724 15.78000000
352727 15.78000000
352756 9.95000000
353117 1.33000000
354376 12.72000000
354432 4.57000000
354545 33.75000000
354601 12.38000000
354737 67.75000000
354785 38.85000000
354787 123.85000000
354793 28.65000000
354825 5.75000000
354847 4.73000000
354866 12.72000000
355069 12.04000000
355097 16.75000000
355124 5.41000000
355136 18.67000000
355667 4.73000000
355716 9.66000000
355742 10.17000000
355811 2.52000000
355889 5.58000000
355899 2.18000000
355903 4.22000000
355937 5.41000000
355987 8.47000000
356197 32.05000000
356238 37.15000000
356296 10.00000000
356325 8.47000000
356354 8.47000000
356448 1.22000000
356478 42.25000000
356488 8.47000000
356586 12.72000000
356615 10.17000000
356640 25.25000000
357476 11.70000000
357503 3.71000000
357553 9.66000000
357642 0.75000000
358340 1.22000000
358415 12.55000000
358420 12.55000000
358485 3.37000000
358706 16.29000000
358745 4.39000000
358866 11.36000000
358867 11.70000000
358976 20.26000000
359011 26.44000000
359053 9.15000000
359065 4.22000000
359091 5.07000000
359419 7.79000000