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 (
    9381, 7889, 8191, 8190, 8192, 9816, 8178, 
    8197, 9137, 8195, 8176, 8222, 9139, 
    9817, 9818, 8177, 9140, 9141, 8223, 
    8224, 9136
  ) 
  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.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "14.71"
    },
    "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": 21,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9381,7889,8191,8190,8192,9816,8178,8197,9137,8195,8176,8222,9139,9817,9818,8177,9140,9141,8223,8224,9136))",
        "cost_info": {
          "read_cost": "14.29",
          "eval_cost": "0.42",
          "prefix_cost": "14.71",
          "data_read_per_join": "100"
        },
        "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
7889 126000.00000000
8176 129000.00000000
8177 164000.00000000
8178 186000.00000000
8190 133000.00000000
8191 115000.00000000
8192 160000.00000000
8195 145000.00000000
8197 138000.00000000
8222 179000.00000000
8223 130000.00000000
8224 149500.00000000
9136 168250.00000000
9137 126000.00000000
9139 125000.00000000
9140 127750.00000000
9141 210000.00000000
9381 47000.00000000
9816 89000.00000000
9817 125000.00000000
9818 125000.00000000