WordPress database error You have an error in your SQL syntax;
-
Hi,
I have these in my File Manager Error Log, what is wrong and how can I fix it?
Thank you very much!!
[13-Jan-2025 22:13:09 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 ‘(ORDER BY post_date_gmt) AS order_rank, post_date_gmt AS order_created_at, ‘ at line 3 for query SELECT ID AS id, row_number() OVER (ORDER BY post_date_gmt) AS order_rank, post_date_gmt AS order_created_at, post_modified_gmt AS order_updated_at FROM xCJ_posts WHERE post_type = ‘shop_order’ AND post_status IN (‘wc-completed’, ‘wc-refunded’) ORDER BY post_date_gmt ASC LIMIT 20; made by do_action_ref_array(‘woocommerce_tracker_send_event’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Tracker::send_tracking_data, WC_Tracker::get_tracking_data, WC_Tracker::get_order_snapshot, WC_Tracker::get_order_data
[13-Jan-2025 22:13:09 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 ‘(ORDER BY post_date_gmt) AS order_rank, post_date_gmt AS order_created_at, ‘ at line 3 for query SELECT ID AS id, row_number() OVER (ORDER BY post_date_gmt) AS order_rank, post_date_gmt AS order_created_at, post_modified_gmt AS order_updated_at FROM xCJ_posts WHERE post_type = ‘shop_order’ AND post_status IN (‘wc-completed’, ‘wc-refunded’) ORDER BY post_date_gmt DESC LIMIT 20; made by do_action_ref_array(‘woocommerce_tracker_send_event’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Tracker::send_tracking_data, WC_Tracker::get_tracking_data, WC_Tracker::get_order_snapshot, WC_Tracker::get_order_data
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.