简体   繁体   English

在正确的语法附近使用MariaDB服务器版本的错误原因是什么

[英]What is the cause of error MariaDB server version for the right syntax to use near

I use latest version wordpress and after save post, admin session end and auto logout from dashboard and cannot login again ... 我使用最新版本的wordpress,并且在保存帖子,管理会话结束以及从仪表板自动注销之后,无法再次登录...

Error log showing following error: 错误日志显示以下错误:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
ORDER BY menu_order ASC' at line 3 SELECT ID FROM wp_posts
                    WHERE post_type = 'attachment'
                    AND ID in ()
                    ORDER BY menu_order ASC quire('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/goodnews/single.php'), mom_single_post_content, mom_single_post_format 

Please advise 请指教

Thankyou 谢谢

The problem is ID IN () You have to specify which values of ID you want to select writing them between brackets (separating them with commas). 问题是ID IN ()您必须指定要选择的ID值,将其写在方括号之间(用逗号分隔)。 Otherwise if don't have to put a filter on ID values delete ID IN () from the WHERE. 否则,如果不必在ID值上放置过滤器,请从WHERE中删除ID IN()。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MariaDB服务器版本可在附近使用正确的语法 - MariaDB server version for the right syntax to use near MySQL错误-MariaDB服务器版本可在'?,?,?,?,?,')附近使用正确的语法 - MySQL Error - MariaDB server version for the right syntax to use near '?, ?, ?, ?, ?)' MariaDB 服务器版本,用于在第 9 行靠近 '' 处使用正确的语法您的 SQL 语法有错误 - MariaDB server version for the right syntax to use near '' at line 9 You have an error in your SQL syntax Laravel-MariaDB服务器版本可在附近使用正确的语法 - Laravel - MariaDB server version for the right syntax to use near MariaDB服务器版本可在第1行的''附近使用正确的语法 - MariaDB server version for the right syntax to use near '' at line 1 错误1064(42000)MariaDB服务器版本,用于在'附近使用正确的语法。 SET =你好,世界WHERE。 = 3'在第1行 - ERROR 1064 (42000) MariaDB server version for the right syntax to use near '. SET = hello world WHERE . =3' at line 1 您的SQL语法有误; 检查与您的MariaDB服务器版本相对应的手册,以在附近使用正确的语法 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 您的SQL语法有误; 检查与您的MariaDB服务器版本相对应的手册,以找到在第1行中的“”附近使用的正确语法 - you have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' ' in Line 1 #1064 - 您的 SQL 语法有错误; 检查与您的 MariaDB 服务器版本相对应的手册,以获取正确的语法,以便在附近使用为什么? - #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near why? 您的SQL语法有错误; 检查与您的MariaDB服务器版本对应的手册,以便在第1行附近使用正确的语法, - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near at line 1",
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM