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 (
    3441, 3811, 7485, 2908, 3882, 5652, 6769, 
    6508, 4222, 5902, 2400, 4585, 4735, 
    2704, 5814, 2832, 5251, 5303, 6054, 
    3361, 2221, 4142, 5025, 4239
  ) 
  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.00102

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.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": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (3441,3811,7485,2908,3882,5652,6769,6508,4222,5902,2400,4585,4735,2704,5814,2832,5251,5303,6054,3361,2221,4142,5025,4239))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "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
2221 65000.00000000
2400 18000.00000000
2704 45000.00000000
2832 1798000.00000000
2908 119000.00000000
3361 70000.00000000
3441 9000.00000000
3811 8000.00000000
3882 84000.00000000
4142 5000.00000000
4222 2150000.00000000
4239 72000.00000000
4585 78000.00000000
4735 3580000.00000000
5025 27000.00000000
5251 1890000.00000000
5303 17000.00000000
5652 475000.00000000
5814 694000.00000000
5902 1755000.00000000
6054 69000.00000000
6508 445000.00000000
6769 245000.00000000
7485 565000.00000000