Undefined variable in custom default.php and query doesn't work

The issue still exists : PHP Notice: Trying to get property of non-object in ...\cobalt_mysql\src\Cobalt\View\Custom\tmpl\default.php:13