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 (
    8458, 8526, 8544, 8646, 8073, 8061, 8683, 
    8070, 8724, 8067, 10982, 8080, 8723, 
    8731, 8522, 8631, 8713, 8681, 8705, 
    8635, 8075, 8675, 8632, 8626, 63370, 
    13303, 64621, 64630, 56363, 64650, 
    55075, 64633
  ) 
  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.00119

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "22.41"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 32,
        "rows_produced_per_join": 6,
        "filtered": "20.00",
        "index_condition": "(`cscartdb`.`cscart_product_prices`.`product_id` in (8458,8526,8544,8646,8073,8061,8683,8070,8724,8067,10982,8080,8723,8731,8522,8631,8713,8681,8705,8635,8075,8675,8632,8626,63370,13303,64621,64630,56363,64650,55075,64633))",
        "cost_info": {
          "read_cost": "21.77",
          "eval_cost": "0.64",
          "prefix_cost": "22.41",
          "data_read_per_join": "153"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`cscartdb`.`cscart_product_prices`.`lower_limit` = 1) and (`cscartdb`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
8061 119.00000000
8067 119.00000000
8070 99.00000000
8073 65.00000000
8075 99.00000000
8080 49.00000000
8458 149.00000000
8522 159.00000000
8526 199.00000000
8544 199.00000000
8626 119.00000000
8631 119.00000000
8632 129.00000000
8635 119.00000000
8646 119.00000000
8675 49.99000000
8681 132.00000000
8683 120.00000000
8705 154.99000000
8713 99.00000000
8723 149.00000000
8724 99.00000000
8731 199.00000000
10982 209.00000000
13303 199.99000000
55075 90.00000000
56363 169.00000000
63370 169.00000000
64621 119.00000000
64630 119.00000000
64633 54.99000000
64650 85.99000000