Warning: fopen(/var/www/html/www/backoffice/backoffice/ck.logs/log_sql_25Nov2017.txt): failed to open stream: Permission denied in /var/www/html/www/backoffice/backoffice/ck.plugin/libraries/class.database.php on line 162 Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/www/backoffice/backoffice/ck.plugin/libraries/class.database.php on line 163 Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/html/www/backoffice/backoffice/ck.plugin/libraries/class.database.php on line 164 SELECT * FROM ck_news,ck_cate_news WHERE ck_news.id_ref_cnews=ck_cate_news.id_cnews AND active_news = 1 AND id_ref_cnews= ORDER BY id_news desc LIMIT 0, 1
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 id_news desc LIMIT 0, 1' at line 1