I have the following code present in my script. It's using the ZenCart built in DB Query handler. It's supposed to be pulling up the admin email address of the current admin.

Is there a better way to pull up the email?

PHP Code:
  $query "select admin_email from "TABLE_ADMIN ." where admin_id = " $_SESSION['admin_id'];
  
$admin $db->Execute$query );
  if( 
$admin ) {    $admin $admin->fields;  }

      
zen_mail($customer['customers_firstname'] . " " $customer['customers_lastname'],
           
$customer['customers_email_address'],
           
$subject,
           
$text,
           
TITLE,
           
$admin['admin_email'],
           
$block,
           
$module_used
         
);