有人请帮帮我。我使用了一个最喜欢的Joomla模板用于网站,该网站一直运行良好,但现在当有人试图访问它时,它显示一个错误页面。 1064 - 错误:1064。请问我该怎么办才能恢复网站没有错误?
谢谢。
您的SQL语法有错误;检查手册 对应于您的MySQL服务器版本,以便使用正确的语法 靠近' ORDER BY content.created DESC'在第25行SQL =
SELECT content.id AS id, content.access AS access, content.catid AS cid,
categories.name AS catname, categories.alias AS cat_alias,
users.email AS author_email, content.created_by_alias AS author_alias,
content.created_by AS author_id, content_rating.rating_sum AS
rating_sum, content_rating.rating_count AS rating_count
FROM ii03y_k2_items AS content
LEFT JOIN ii03y_k2_categories AS categories ON categories.id = content.catid
LEFT JOIN ii03y_users AS users ON users.id = content.created_by
LEFT JOIN ii03y_k2_rating AS content_rating ON content_rating.itemID = content.id
WHERE
ORDER BY content.created DESC
答案 0 :(得分:0)
您收到错误是因为您的查询已Where Clause
但此处没有条件,因此请从查询中删除Where Clause
或添加条件(如果有)。