WordPress 数据库错误日志尚未加载博客并看起来不错

WordPress database error log yet Blog loads and looks fine

我正在尝试查找在我的 Wordpress 安装的 Plesk 日志中不断出现的错误。它使用主题 Colornews,我能够加载博客,它看起来和预期的一样。错误在日志中显示如下:

AH01071: Got error 'PHP message: WordPress database error Table 'blog_database.wp_commentsINNER' doesn't exist for query \n\t\t\t\t\tSELECT wpcoms.*, wpposts.ID, wpposts.comment_count, wpposts.post_title\n\t\t\t\t\tFROM (\n\t\t\t\t\t\tSELECT *,\n\t\t\t\t\t\t\t@num := if(@post_id = comment_post_ID, @num + 1, 1) as row_number,\n\t\t\t\t\t\t\t@post_id := comment_post_ID as cpID\n\t\t\t\t\t\tFROM wp_commentsINNER JOIN wp_posts wpposts\n\t\t\t\t\t\t\t\tON (comment_post_ID = wpposts.ID\n\t\t\t\t\t\t\t\t\tAND (wpposts.post_status = 'publish' OR wpposts.post_status = 'inherit') \n\t\t\t\t\t\t\t\t\tAND wpposts.post_password = '' AND wpposts.post_type = 'post' )\n\t\t\t\t\t\t\tWHERE comment_approved = 1 AND comment_type = '' ORDER BY comment_post_ID DESC, comment_ID DESC \n\t\t\t\t\t) as wpcoms\n\t\t\t\t\t\tWHERE wpcoms.row_number <= 3\n\t\t\t\t\t\t\tORDER BY wpcoms.comment_date DESC\n\t\t\t\t\t\tLIMIT 3 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/colornews/index.php'), get_sidebar, locate_template, load_template, require_once('/themes/colornews/sidebar.php'), dynamic_sidebar, W...\n'

希望不大,但想知道是否有人可以指出正确的方向来修复错误。

谢谢 克里斯

错误是self-explanatory。 SQL 查询出错:

wp_commentsINNER

table 名称和 INNER 之间缺少 space。找到执行该查询的位置并修复它。