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 (
    30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 
    41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 
    51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 
    62
  ) 
  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.00062

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "76.81"
    },
    "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": "19.63",
        "index_condition": "(`pankajecarter_systemfour`.`cscart_product_prices`.`product_id` in (30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,62))",
        "cost_info": {
          "read_cost": "75.55",
          "eval_cost": "1.26",
          "prefix_cost": "76.81",
          "data_read_per_join": "150"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`pankajecarter_systemfour`.`cscart_product_prices`.`lower_limit` = 1) and (`pankajecarter_systemfour`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
30 349.95000000
31 32.00000000
32 299.99000000
33 169.99000000
34 25.00000000
35 31.99000000
36 51.00000000
37 159.95000000
38 16.97000000
39 419.00000000
40 229.00000000
41 35.00000000
42 79.00000000
43 369.00000000
44 25.00000000
45 74.00000000
46 21.00000000
47 29.99000000
48 180.00000000
49 120.00000000
50 220.00000000
51 180.00000000
52 139.99000000
53 38.99000000
54 269.00000000
55 359.00000000
56 220.00000000
57 309.00000000
58 779.00000000
59 599.00000000
60 1499.00000000
62 209.95000000