[PrestaShopDatabaseException]

Unknown column 'ago.id_object' in 'on clause'

			SELECT *
			FROM `ps_attribute` a
			 INNER JOIN ps_attribute_shop attribute_shop
        ON (attribute_shop.id_attribute = a.id_attribute AND attribute_shop.id_shop = 1)
			LEFT JOIN `ps_attribute_lang` al
				ON (a.`id_attribute` = al.`id_attribute` AND al.`id_lang` = 1)
			LEFT JOIN `ps_object_owner` ao on (ao.entity='attribute' AND ago.id_object=ag.id_attribute)
			WHERE a.`id_attribute_group` = 2
			 AND IFNULL(ao.id_owner,0) in (0,0)
			ORDER BY `position` ASC
		

at line 769 in file classes/db/Db.php

764.         if ($webservice_call && $errno) {
765.             $dbg = debug_backtrace();
766.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768.             if ($sql) {
769.                 throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770.             }
771. 
772.             throw new PrestaShopDatabaseException($this->getMsgError());
773.         }
774.     }