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 (
    7401, 7394, 7462, 7420, 7400, 7441, 7035, 
    7410, 7393, 7402, 7409, 7404, 7396, 
    7395, 7403, 7405, 7034, 7399, 7407, 
    7447, 7408, 7434, 7448, 7360, 7449, 
    7458, 7421, 7424, 7433, 7425, 7436, 
    7440, 7444, 7445, 7457, 7459, 7460, 
    7428, 7442, 7461, 7463, 7426, 7432, 
    7453, 7398, 7451, 7452, 7397, 7450, 
    7454, 7455, 7456, 7358
  ) 
  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.00237

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.11"
    },
    "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": 53,
        "rows_produced_per_join": 10,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7401,7394,7462,7420,7400,7441,7035,7410,7393,7402,7409,7404,7396,7395,7403,7405,7034,7399,7407,7447,7408,7434,7448,7360,7449,7458,7421,7424,7433,7425,7436,7440,7444,7445,7457,7459,7460,7428,7442,7461,7463,7426,7432,7453,7398,7451,7452,7397,7450,7454,7455,7456,7358))",
        "cost_info": {
          "read_cost": "36.05",
          "eval_cost": "1.06",
          "prefix_cost": "37.11",
          "data_read_per_join": "254"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
7034 5000.00000000
7035 6000.00000000
7358 1500.00000000
7360 1500.00000000
7393 1500.00000000
7394 0.00000000
7395 1500.00000000
7396 1500.00000000
7397 1500.00000000
7398 1500.00000000
7399 1500.00000000
7400 1500.00000000
7401 1500.00000000
7402 1500.00000000
7403 1500.00000000
7404 1500.00000000
7405 1500.00000000
7407 2250.00000000
7408 1500.00000000
7409 1500.00000000
7410 1500.00000000
7420 1500.00000000
7421 1500.00000000
7424 1500.00000000
7425 1500.00000000
7426 1500.00000000
7428 1500.00000000
7432 1500.00000000
7433 1500.00000000
7434 1500.00000000
7436 1500.00000000
7440 1500.00000000
7441 1500.00000000
7442 1500.00000000
7444 1500.00000000
7445 1500.00000000
7447 1500.00000000
7448 1500.00000000
7449 1500.00000000
7450 1500.00000000
7451 1500.00000000
7452 1500.00000000
7453 1500.00000000
7454 1500.00000000
7455 1500.00000000
7456 1500.00000000
7457 1500.00000000
7458 1500.00000000
7459 1500.00000000
7460 1500.00000000
7461 1500.00000000
7462 1500.00000000
7463 1500.00000000