A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 2764

Backtrace:

File: /opt/data/www/alphea-conseil.fr/application/controllers/Main.php
Line: 2764
Function: _error_handler

File: /opt/data/www/alphea-conseil.fr/index.php
Line: 326
Function: require_once

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 'ORDER BY d_start DESC LIMIT 3' at line 1

SELECT a.lien as lien ,a.d_start,a.id, a.image,a.fr_txt_image,a.fr_titre AS titre, a.fr_texte, a.d_upd,a.seo_title,a.seo_description,a.seo_keywords FROM articles_a a WHERE ((d_start = "0000-00-00 00:00:00" AND d_end = "0000-00-00 00:00:00") OR (d_start < NOW() AND d_end = "0000-00-00 00:00:00") OR (d_start < NOW() AND d_end > NOW())) AND etat = 1 AND id != ORDER BY d_start DESC LIMIT 3

Filename: controllers/Main.php

Line Number: 2764