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 (
    358369, 358728, 358826, 352229, 352514, 
    354424, 354429, 357436, 357598, 357601, 
    358801, 350114, 355753, 357812, 352323, 
    354368, 354613, 351386, 351396, 351532, 
    352624, 356082, 356464, 357453, 358599, 
    358840, 352233, 354354, 356667, 358408, 
    358457, 358990, 352358, 352615, 354985, 
    358958, 358991, 352429, 355020, 355042, 
    355133, 356592, 356676, 357463, 358831, 
    358984, 351403, 351620, 357142, 358382, 
    351598, 352319, 354856, 355668, 357528, 
    351323, 351370, 351435, 352362, 354450, 
    354648, 354877, 356424, 356425, 357146, 
    358620, 358920, 351473, 352353, 352591, 
    354399, 354644, 354769, 355676, 355678, 
    355747, 358811, 352510, 354970, 356100, 
    356289, 356603, 358849, 352350, 352586, 
    355053, 356050, 357467, 358275, 358462, 
    358882, 351285, 351474, 354440, 354517, 
    355086, 355612, 355852, 355866, 356002
  ) 
  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.00319

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 (358369,358728,358826,352229,352514,354424,354429,357436,357598,357601,358801,350114,355753,357812,352323,354368,354613,351386,351396,351532,352624,356082,356464,357453,358599,358840,352233,354354,356667,358408,358457,358990,352358,352615,354985,358958,358991,352429,355020,355042,355133,356592,356676,357463,358831,358984,351403,351620,357142,358382,351598,352319,354856,355668,357528,351323,351370,351435,352362,354450,354648,354877,356424,356425,357146,358620,358920,351473,352353,352591,354399,354644,354769,355676,355678,355747,358811,352510,354970,356100,356289,356603,358849,352350,352586,355053,356050,357467,358275,358462,358882,351285,351474,354440,354517,355086,355612,355852,355866,356002)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
350114 5.07000000
351285 8.47000000
351323 19.64000000
351370 18.67000000
351386 13.23000000
351396 7.62000000
351403 8.30000000
351435 2.86000000
351473 4.56000000
351474 3.81000000
351532 5.75000000
351598 0.82000000
351620 0.82000000
352229 5.58000000
352233 0.19000000
352319 38.85000000
352323 14.42000000
352350 14.93000000
352353 11.87000000
352358 50.75000000
352362 21.22000000
352429 21.85000000
352510 19.13000000
352514 38.85000000
352586 13.06000000
352591 13.06000000
352615 30.35000000
352624 44.97000000
354354 21.85000000
354368 35.45000000
354399 28.65000000
354424 7.45000000
354429 7.62000000
354440 6.77000000
354450 6.77000000
354517 91.55000000
354613 6.43000000
354644 11.87000000
354648 11.02000000
354769 11.87000000
354856 6.26000000
354877 12.55000000
354970 8.47000000
354985 49.05000000
355020 28.65000000
355042 16.75000000
355053 14.42000000
355086 7.11000000
355133 2.52000000
355612 6.94000000
355668 12.38000000
355676 12.72000000
355678 11.36000000
355747 8.47000000
355753 6.26000000
355852 1.22000000
355866 3.88000000
356002 6.26000000
356050 6.26000000
356082 11.02000000
356100 12.33000000
356289 8.13000000
356424 16.29000000
356425 16.29000000
356464 8.47000000
356592 16.29000000
356603 17.43000000
356667 12.38000000
356676 1.67000000
357142 4.73000000
357146 7.28000000
357436 11.02000000
357453 3.88000000
357463 10.51000000
357467 3.71000000
357528 7.62000000
357598 14.86000000
357601 2.19000000
357812 2.18000000
358275 11.02000000
358369 42.25000000
358382 1.96000000
358408 26.95000000
358457 23.55000000
358462 19.52000000
358599 35.45000000
358620 5.07000000
358728 6.43000000
358801 11.36000000
358811 7.79000000
358826 24.62000000
358831 12.55000000
358840 15.61000000
358849 6.09000000
358882 6.26000000
358920 14.25000000
358958 13.69000000
358984 7.51000000
358990 0.63000000
358991 0.73000000