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 (
    1434, 1435, 1436, 1437, 1438, 1439, 3721, 
    3722, 5145, 5146, 5147, 5148, 7502, 
    7503, 7584, 7585, 7622, 7623, 7660, 
    7661, 7698, 7699
  ) 
  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.00138

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.41"
    },
    "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": 22,
        "rows_produced_per_join": 4,
        "filtered": "20.00",
        "index_condition": "(`gaseus`.`cscart_product_prices`.`product_id` in (1434,1435,1436,1437,1438,1439,3721,3722,5145,5146,5147,5148,7502,7503,7584,7585,7622,7623,7660,7661,7698,7699))",
        "cost_info": {
          "read_cost": "14.97",
          "eval_cost": "0.44",
          "prefix_cost": "15.41",
          "data_read_per_join": "105"
        },
        "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
1434 0.00000000
1435 0.00000000
1436 0.00000000
1437 0.00000000
1438 0.00000000
1439 0.00000000
3721 0.00000000
3722 0.00000000
5145 0.00000000
5146 0.00000000
5147 0.00000000
5148 0.00000000
7502 0.00000000
7503 0.00000000
7584 0.00000000
7585 0.00000000
7622 0.00000000
7623 0.00000000
7660 0.00000000
7661 0.00000000
7698 0.00000000
7699 0.00000000