diff --git a/incoming.php b/incoming.php index 44e88dd..70b9832 100755 --- a/incoming.php +++ b/incoming.php @@ -78,9 +78,7 @@ if ($clientId) { $client = $db->getObject( 'SELECT d.pbxQueue, c.id, d.notificationEmail FROM vn.client c - JOIN vn.worker w ON w.id = c.salesPersonFk - JOIN vn.business b ON b.id = w.businessFk - JOIN vn.department d ON d.id = b.departmentFk + JOIN vn.department d ON d.id = c.departmentFk WHERE c.id= #',[$clientId] );