A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Page.php

Line Number: 128

Backtrace:

File: /var/www/html/application/modules/catalogue/controllers/Page.php
Line: 128
Function: _error_handler

File: /var/www/html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /var/www/html/application/modules/catalogue/models/Product.php
Line: 630
Function: query

File: /var/www/html/application/modules/catalogue/controllers/Page.php
Line: 128
Function: getBrand

File: /var/www/html/index.php
Line: 345
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4

SELECT B.* FROM catalogue_brands B JOIN catalogue_items CI ON CI.brand_id = B.id WHERE CI.item_id =

Filename: modules/catalogue/models/Product.php

Line Number: 630