A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product_detail.php

Line Number: 58

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product_detail.php

Line Number: 64

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product_detail.php

Line Number: 65

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product_detail.php

Line Number: 68

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/product_model.php

Line Number: 302

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bmatech/www/www/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 439

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 'and (category.id = 999999999 or category.parent_id = 999999999))' at line 1

select product.* from product where product.id = (select max(product.id) from product LEFT JOIN category ON category.id = product.category_id where product.id < and (category.id = 999999999 or category.parent_id = 999999999))

Filename: /home/bmatech/www/www/models/product_model.php

Line Number: 304