A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/press_model.php

Line Number: 86

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/press_model.php

Line Number: 87

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 437

Database Error

Errore del database

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 `IM`.`featured` = 1 ORDER BY `sort_order` DESC LIMIT 1' at line 6

SELECT `P`.`id`, `P`.`slug` FROM (`press` AS P) LEFT JOIN `press_images` AS IM ON `P`.`id` = `IM`.`press_id` WHERE DATEDIFF(P.pubblication_date, "") <= 0 AND `P`.`id` != AND `IM`.`featured` = 1 ORDER BY `sort_order` DESC LIMIT 1

Filename: /home/criscele/public_html/core/MY_Model.php

Line Number: 165