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 (
    357695, 350166, 351109, 351665, 351706, 
    352131, 353415, 353261, 353262, 353529, 
    355225, 355897, 356720, 349870, 351281, 
    352960, 354535, 356589, 357067, 358172, 
    353285, 353428, 355773, 356995, 359348, 
    353111, 353326, 353388, 353536, 354023, 
    354674, 355194, 356783, 357083, 359109, 
    349880, 350707, 352099, 354960, 350274, 
    350691, 350802, 351185, 353048, 353568, 
    353657, 353844, 358809, 358992, 349923, 
    350701, 351217, 353080, 353113, 353335, 
    354706, 355502, 357314, 357321, 350186, 
    350371, 355570, 356147, 352885, 352972, 
    353280, 354363, 354803, 350997, 354115, 
    354961, 356912, 350111, 351058, 353682, 
    353820, 359256, 349861, 350443, 351052, 
    351611, 355526, 350239, 350735, 353604, 
    355345, 355513, 358031, 350430, 351500, 
    351729, 352537, 353404, 353905, 353991, 
    355478, 355718, 357205, 357787, 350485
  ) 
  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.00170

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 (357695,350166,351109,351665,351706,352131,353415,353261,353262,353529,355225,355897,356720,349870,351281,352960,354535,356589,357067,358172,353285,353428,355773,356995,359348,353111,353326,353388,353536,354023,354674,355194,356783,357083,359109,349880,350707,352099,354960,350274,350691,350802,351185,353048,353568,353657,353844,358809,358992,349923,350701,351217,353080,353113,353335,354706,355502,357314,357321,350186,350371,355570,356147,352885,352972,353280,354363,354803,350997,354115,354961,356912,350111,351058,353682,353820,359256,349861,350443,351052,351611,355526,350239,350735,353604,355345,355513,358031,350430,351500,351729,352537,353404,353905,353991,355478,355718,357205,357787,350485)) and (`webmarco`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
349861 0.12000000
349870 4.56000000
349880 1.28000000
349923 1.22000000
350111 4.90000000
350166 2.86000000
350186 1.84000000
350239 10.51000000
350274 2.31000000
350371 2.69000000
350430 0.61000000
350443 0.99000000
350485 20.88000000
350691 0.75000000
350701 6.26000000
350707 10.17000000
350735 5.24000000
350802 2.52000000
350997 2.86000000
351052 12.33000000
351058 1.84000000
351109 13.35000000
351185 16.80000000
351217 13.57000000
351281 17.48000000
351500 57.55000000
351611 0.82000000
351665 6.26000000
351706 7.28000000
351729 30.35000000
352099 4.05000000
352131 4.90000000
352537 17.94000000
352885 77.95000000
352960 135.75000000
352972 83.05000000
353048 50.75000000
353080 62.65000000
353111 152.75000000
353113 62.65000000
353261 33.75000000
353262 42.25000000
353280 392.45000000
353285 134.05000000
353326 191.85000000
353335 98.35000000
353388 79.65000000
353404 117.05000000
353415 84.75000000
353428 45.65000000
353529 67.75000000
353536 84.75000000
353568 62.65000000
353604 84.75000000
353657 49.05000000
353682 89.85000000
353820 17.65000000
353844 134.05000000
353905 62.65000000
353991 151.05000000
354023 91.55000000
354115 230.95000000
354363 43.95000000
354535 11.48000000
354674 9.15000000
354706 66.05000000
354803 83.05000000
354960 3.88000000
354961 4.22000000
355194 2.86000000
355225 1.11000000
355345 13.57000000
355478 1.22000000
355502 4.39000000
355513 6.09000000
355526 2.69000000
355570 3.71000000
355718 1.22000000
355773 5.24000000
355897 6.60000000
356147 4.39000000
356589 8.47000000
356720 25.98000000
356783 32.05000000
356912 30.35000000
356995 5.24000000
357067 4.90000000
357083 3.20000000
357205 17.94000000
357314 1.26000000
357321 5.41000000
357695 4.22000000
357787 0.75000000
358031 4.73000000
358172 4.39000000
358809 8.98000000
358992 4.64000000
359109 2.01000000
359256 9.15000000
359348 3.37000000