A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 25

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 438

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 'group by p.id) rowCount' at line 2

Select count(*) totalCount from (select p.id from products p inner join products_categories pc on pc.product_id = p.id where p.active = 1 and pc.category_id = group by p.id) rowCount

Filename: /home/content/42/10383942/html/models/products_model.php

Line Number: 15