I am working in opencart. I am using log object for debugging. i am quering my db to give me email against an id i get perfect result in my SQL DB when i run it. but in my code em getting nothing when i print my variable. here is my code
$email=$this->db->query("SELECT email FROM `" . DB_PREFIX . "shipping_pools`
WHERE geo_zone_id = '".$zone_id."'");
$this->log->write($email);
here is an error i get in my log file
"PHP Unknown: Object of class stdClass could not be converted to string in /home/ifarpart/public_html/dev/system/library/log.php on line 14"