Severity: Notice
Message: Undefined offset: 0
Filename: controllers/News.php
Line Number: 79
Backtrace:
File: /home/elyssafm/public_html/application/controllers/News.php
Line: 79
Function: _error_handler
File: /home/elyssafm/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/elyssafm/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home/elyssafm/public_html/application/controllers/News.php
Line: 79
Function: query
File: /home/elyssafm/public_html/index.php
Line: 315
Function: require_once
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 news.id DESC limit 3' at line 1
SELECT news.*,categorie.nom as gr,categorie.id as catid,user.nom as usernom,user.prenom as userprenom,user.id as userid FROM news,categorie,user where news.id_user=user.id and news.id_categorie=categorie.id and categorie.id= order by news.id DESC limit 3
Filename: controllers/News.php
Line Number: 79