diff --git a/expense_add_modal.php b/expense_add_modal.php
index 2d2b4682..e8d473f5 100644
--- a/expense_add_modal.php
+++ b/expense_add_modal.php
@@ -43,7 +43,7 @@
- Vendor -
- Category -
- Client (Optional) -
'$expense_created_at' OR account_archived_at IS NULL) ORDER BY account_name ASC");
+ $sql_accounts = mysqli_query($mysqli, "SELECT account_id, account_name, opening_balance FROM accounts WHERE (account_archived_at > '$expense_created_at' OR account_archived_at IS NULL) ORDER BY account_name ASC");
while ($row = mysqli_fetch_array($sql_accounts)) {
$account_id_select = intval($row['account_id']);
$account_name_select = htmlentities($row['account_name']);
@@ -85,7 +85,7 @@