From eed7c546c64628b857f2fc41be0fef905650d9d0 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 26 Oct 2015 19:55:23 +0000 Subject: [PATCH] Fixed list_bills function when using :bill_id --- html/includes/api_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index 1761cabf2..68a574a59 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -925,7 +925,7 @@ function list_bills() { $param = array($bill_ref); } elseif (is_numeric($bill_id)) { - $sql = '`bill_id` = ?'; + $sql = '`bills`.`bill_id` = ?'; $param = array($bill_id); } else {