При просмотре из профиля последних комментариев появляется ошибка:
The Error returned was:
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 'WHERE dle_comments.user_id='1' ORDER BY rating DESC, comm_num DESC, news_read DE' at line 1
Error Number:
1064
PHP код:
SELECT `id`, `title`, `version`, `alt_name` FROM dle_downloads WHERE `approve` = '0' AND `date` >= '2013-07-04 20:26:01' - INTERVAL 1 MONTH AND date < '2013-07-04 20:26:01' WHERE dle_comments.user_id='1' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,16
Как можно это исправить?