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 (
    3027, 3301, 6847, 3300, 2841, 2842, 2843, 
    2844, 6426, 6427, 6428, 6429, 6430, 
    2765, 2766, 2767, 2768, 6352, 6353, 
    6354, 6355, 6356, 5807, 2185
  ) 
  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": "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": "20.00",
        "index_condition": "(`gaseus`.`cscart_product_prices`.`product_id` in (3027,3301,6847,3300,2841,2842,2843,2844,6426,6427,6428,6429,6430,2765,2766,2767,2768,6352,6353,6354,6355,6356,5807,2185))",
        "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": "((`gaseus`.`cscart_product_prices`.`lower_limit` = 1) and (`gaseus`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
2185 0.00000000
2765 0.00000000
2766 0.00000000
2767 0.00000000
2768 0.00000000
2841 0.00000000
2842 0.00000000
2843 0.00000000
2844 0.00000000
3027 0.00000000
3300 224.00000000
3301 294.00000000
5807 0.00000000
6352 0.00000000
6353 0.00000000
6354 0.00000000
6355 0.00000000
6356 0.00000000
6426 0.00000000
6427 0.00000000
6428 0.00000000
6429 0.00000000
6430 0.00000000
6847 3720.00000000