A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 145

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 146

A PHP Error was encountered

Severity: Warning

Message: Creating default object from empty value

Filename: controllers/products.php

Line Number: 146

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 148

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/products.php

Line Number: 149

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 438

Database Error

GreŇ°ka na bazi je nastupila

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY `IDprod` ORDER BY `catnum` desc LIMIT 5' at line 7

SELECT `pc`.`IDprod`, COUNT('IDprod') AS 'catnum', `p`.`IDproduct`, `p`.`nicename` as pnicename, `p`.`title`, `p`.`picture`, `p`.`IDauthor`, `a`.`name`, `a`.`nicename` as anicename FROM (`dm_products_categories` pc) JOIN `dm_products` p ON `pc`.`IDprod` = `p`.`IDproduct` JOIN `dm_authors` a ON `p`.`IDauthor` = `a`.`IDauthor` WHERE `IDcat` = '' AND `IDprod` != GROUP BY `IDprod` ORDER BY `catnum` desc LIMIT 5

Filename: /home/djecijak/public_html/models/product_category.php

Line Number: 72