[英]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.