• I get the following error in all my phperrorlog messages. It happens several times each day but I can’t find a solution.

    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 ‘WHERE AND comment_parent IN (92,96) ORDER BY comment_date_gmt ASC, comment_ID ‘ at line 1 de la base de datos de WordPress para la consulta SELECT wp_comments.comment_ID, wp_comments.comment_parent WHERE AND comment_parent IN (92,96) ORDER BY comment_date_gmt ASC, comment_ID ASC realizada por require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/sapor/single.php’), comments_template, WP_Comment_Query->__construct, WP_Comment_Query->query, WP_Comment_Query->get_comments, WP_Comment_Query->fill_descendants

Viewing 1 replies (of 1 total)
  • Hello @mizunga
    Please try this query,
    SELECT wp_comments.comment_ID, wp_comments.comment_parent from wp_comments WHERE comment_parent IN (92,96) ORDER BY comment_date_gmt ASC, comment_ID ASC
    Hope this will solve your purpose.
    Thanks

Viewing 1 replies (of 1 total)

The topic ‘WP_COMMENTS Error You have an error in your SQL syntax’ is closed to new replies.