I am having is when creating a new site from the front-end. I am using Blog Templates. I get these mysql errors only when selecting a certain template. Those errors are in my log. Here is a gist of my exact log: https://gist.github.com/buddyq/fbf79b1460aa51cd2de4ccde7ac16ce8
How can I decipher exactly where this bad mysql statement might be?
I just did a grep on the server for WHERE ID IN and I found 3 instances in blogtemplates/copier.php one looks like it might be it.
Looks like theres a syntax error
$objects = $wpdb->get_results( "SELECT * FROM $templated_posts_table
WHERE ID IN ( $objects_ids )", ARRAY_N );
and LINE 1012: $objects_meta = $wpdb->get_results( "SELECT * FROM $templated_postmeta_table
WHERE post_id IN ( $objects_ids )", ARRAY_N );
those look VERY similar to what is in the error nothing else in my Grep came close.
The template made with enfold theme but I call it Tarrytown. It is a child theme of enfold. No custom queries in the theme.