A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product.php

Line Number: 64

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/product.php

Line Number: 65

Database Error

An Error Was Encountered

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 pt_products_sections.sectionID = pt_products_categories.sectionID AND pt_pro' at line 1

SELECT pt_products_sections.sectionName, pt_products_categories.catName, pt_products_categories.catDesc, pt_products.profileName, pt_products.profileDesc FROM pt_products, pt_products_categories, pt_products_catsref, pt_products_sections WHERE pt_products_categories.catID = AND pt_products_sections.sectionID = pt_products_categories.sectionID AND pt_products_categories.catID = pt_products_catsref.catID AND pt_products.profileID = pt_products_catsref.productID ORDER BY pt_products_categories.catID