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 `date` desc, `created_at` desc LIMIT 10' at line 5

SELECT `id`, `date`, `created_at` FROM (`blog`) WHERE `display_flg` = 1 AND `date` <= ORDER BY `date` desc, `created_at` desc LIMIT 10

Filename: /home/vanspro/www/application/models/blog_model.php

Line Number: 199