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 (
    1232946, 600081, 591543, 611228, 591145, 
    611260, 1779540, 594090, 621042, 459123, 
    592444, 589118, 1232940, 1232908, 
    594006, 595804, 866378, 590566, 592825, 
    796380, 698317, 1233022, 594292, 1232971, 
    612103, 589509, 1232911, 866376, 1233039, 
    589731, 1068615, 696911, 590525, 611377, 
    590341, 614832
  ) 
  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.00709

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "78.10"
    },
    "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": 72,
        "rows_produced_per_join": 72,
        "filtered": "100.00",
        "cost_info": {
          "read_cost": "70.90",
          "eval_cost": "7.20",
          "prefix_cost": "78.10",
          "data_read_per_join": "1K"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`maniamall_cscart`.`cscart_product_prices`.`lower_limit` = 1) and (`maniamall_cscart`.`cscart_product_prices`.`product_id` in (1232946,600081,591543,611228,591145,611260,1779540,594090,621042,459123,592444,589118,1232940,1232908,594006,595804,866378,590566,592825,796380,698317,1233022,594292,1232971,612103,589509,1232911,866376,1233039,589731,1068615,696911,590525,611377,590341,614832)) and (`maniamall_cscart`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
459123 84.990000
589118 37.500000
589509 32.500000
589731 75.000000
590341 7.500000
590525 230.000000
590566 165.000000
591145 46.880000
591543 244.750000
592444 107.250000
592825 21.880000
594006 59.990000
594090 75.000000
594292 60.000000
595804 46.880000
600081 44.990000
611228 12.490000
611260 197.490000
611377 84.990000
612103 44.990000
614832 27.490000
621042 31.240000
696911 50.000000
698317 26.240000
796380 38.740000
866376 43.740000
866378 43.740000
1068615 103.740000
1232908 24.990000
1232911 59.990000
1232940 29.990000
1232946 56.240000
1232971 41.240000
1233022 104.990000
1233039 97.490000
1779540 61.240000