A Database Error Occurred

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 'ORDER BY n.date DESC' at line 16

SELECT n.id, DATE_FORMAT(n.date, "%m/%d/%Y") as added_date, n.title, n.image, n.desc, n.rewrite, n_c.title as category, n.content FROM news n LEFT JOIN news_category as n_c ON n.category_id = n_c.id WHERE n.display = 1 AND n.date <= "" AND n.id != ORDER BY n.date DESC

Filename: controllers/News.php

Line Number: 154