Skip to content

Instantly share code, notes, and snippets.

This happens when creating a site via WP Multisite using a specific theme only. This error does not happen with other templates. How can I decipher exactly where this bad mysql statement might be?
[21-Jan-2018 03:56:13 UTC] WordPress database error 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 ')' at line 2 for query SELECT * FROM aa_4_posts
WHERE ID IN ( ) made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/agent-assets/create_a_site.php'), validate_another_blog_signup, wpmu_create_blog, do_action('wpmu_new_blog'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, blog_templates->set_blog_defaults, NBT_Template_copier->execute, call_user_func, NBT_Template_copier->copy_menus, NBT_Template_copier->copy_menu
buddyquaidsmbp2:APRE_NEW buddy$ git fetch apre-live master
warning: no common commits
remote: Counting objects: 46486, done.
remote: Compressing objects: 100% (46184/46184), done.
fatal: The remote end hung up unexpectedly.40 MiB | 157.00 KiB/s
fatal: early EOF
fatal: index-pack failed
buddyquaidsmbp2:APRE_NEW buddy$