| Код | SELECT a.id, a.autor, a.date, a.short_story, SUBSTRING(a.full_story, 1, 15) as full_story, a.xfields, a.title, a.category, a.alt_name, a.comm_num, a.allow_comm, a.allow_rate, a.rating, a.vote_num, a.news_read, a.flag, a.editdate, a.editor, a.reason, a.view_edit, a.tags FROM " . PREFIX . "_post AS a LEFT JOIN dle_users.level,dle_users.rank,dle_users.clan,dle_users.profa ON a.autor = .name WHERE {$stop_list}date >= '{$year}-01-01'AND date < '{$year}-01-01' + INTERVAL 1 YEAR AND approve" . $where_date . " ORDER BY " . $news_sort_by . " " . $news_direction_by . " LIMIT " . $cstart . "," . $config['news_number']
|
вот sql запрос который писал проблема в том что не хочет его выполнать ошибку пишет такую 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 'dle_users.rank,dle_users.clan,dle_users.profa ON a.autor = .name where date >= ' at line 1 |