From 3bc70bcdca369ba95d6021b3ed35a18294fd6cbf Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 19 May 2015 00:52:29 +0000 Subject: [PATCH] Specify the correct table. --- app/provision/resources/classes/provision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 2fc62e1731..9d1171a6d4 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -387,7 +387,7 @@ include "root.php"; //get contacts from the database $sql = "select c.contact_organization, c.contact_name_given, c.contact_name_family, p.phone_number, p.phone_extension "; $sql .= "from v_contacts as c, v_contact_phones as p "; - $sql .= "where domain_uuid = '".$domain_uuid."' "; + $sql .= "where c.domain_uuid = '".$domain_uuid."' "; $sql .= "and c.contact_uuid = p.contact_uuid "; $sql .= "and p.phone_type_voice = '1' "; $sql .= "order by c.contact_organization desc, c.contact_name_given asc, c.contact_name_family asc ";