[08-Dec-2022 16:37:17 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 1 for query ALTER TABLE ######_ssa_appointment_type_labels ADD
(
) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Simply_Schedule_Appointments->hooks, Simply_Schedule_Appointments->plugins_loaded, Simply_Schedule_Appointments->plugin_classes, SSA_Appointment_Type_Label_Model->__construct, SSA_Db_Model->__construct, TD_DB_Model->__construct, TD_DB_Model->db_hooks, TD_DB_Model->maybe_create_table, TD_DB_Model->create_table, dbDelta
This is the WordPress error received
[Tue Jun 02 20:00:47.793299 2020] [php7:notice] [pid 30118] [client 86.182.80.181:52568] 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 ‘rating_postid INT(11) NOT NULL ,rating_posttitle TEXT NOT NULL,rating_rating INT’ at line 1 for query ALTER TABLE wp_ratings CHANGE COLUMN rating_id
rating_id INT(11) NOT NULL auto_increment,rating_postid INT(11) NOT NULL ,rating_posttitle TEXT NOT NULL,rating_rating INT(2) NOT NULL ,rating_timestamp VARCHAR(15) NOT NULL ,rating_ip VARCHAR(40) NOT NULL ,rating_host VARCHAR(200) NOT NULL,rating_username VARCHAR(50) NOT NULL,rating_userid int(10) NOT NULL default ‘0’,PRIMARY KEY (rating_id),KEY rating_userid (rating_userid),KEY rating_postid_ip (rating_postid, rating_ip) /* From [bags-of-books.co.uk/wp-admin/network/plugins.php?action=activate&networkwide=1&plugin=wp-postratings%2Fwp-postratings.php&_wpnonce=9d69864a0d] in [/nas/content/live/bagsofbomaster/wp-content/plugins/wp-postratings/includes/postratings-activation.php:56] */ made by require(‘wp-admin/plugins.php’), activate_plugin, do_action(‘activate_wp-postratings/wp-postratings.php’), WP_Hook->do_action, WP_Hook->apply_filters, ratings_activation, ratings_activate, dbDelta, referer: https://bags-of-books.co.uk/wp-admin/network/update.php?action=upload-plugin
I am not able to pinpoint the actual cause of the below shown sql syntax issue.
I was hoping you pro’s might push me into the right direction and help me fix this one.
WordPress-Datenbank-Fehler 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 'TITLE, wc_product_meta_lookup.product_id TITLE' at line 1 f\xc3\xbcr Abfrage SELECT wp_posts.* FROM wp_posts LEFT JOIN wp_wc_product_meta_lookup wc_product_meta_lookup ON wp_posts.ID = wc_product_meta_lookup.product_id WHERE 1=1 AND wp_posts.ID NOT IN (485259) AND wp_posts.post_type = 'fusion_tb_layout' AND ((wp_posts.post_status = 'publish')) ORDER BY wc_product_meta_lookup.total_sales TITLE, wc_product_meta_lookup.product_id TITLE von require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array('pre_get_posts'), WP_Hook->do_action, WP_Hook->apply_filters, FusionTB_Archives->alter_search_loop, Fusion_Template_Builder->get_search_override, fusion_cached_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts: /path/path/wordpress/index.php
2020-03-14 11:30:40 ip.ip.ip.ip:port
love
David
[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]
I tried to use your new hook cfdb7_before_save
to apply esc_sql to the returned form data. But my modified data doesn’t seems to be used.
Can you help me please?
Thanks a lot!
Thanks for the great plugin. I noticed though that it gives a continuous error in the log:
Can you please address this?
]]>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 ‘) AND status = ‘active” at line 1 for query SELECT DISTINCT user_id FROM wp_pmpro_memberships_users WHERE membership_id IN () AND status = ‘active’ made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, pmpro_bp_directory_init, pmpro_bp_get_members_in_directory
Here is the code that I found in includes/directory.php
$sql = "SELECT DISTINCT user_id FROM $wpdb->pmpro_memberships_users WHERE membership_id IN (" . implode(",", array_map("intval", $include_levels)) . ") AND status = 'active'";
Any help how to fix this would be greatly appreciated. I have looked everywhere trying to remedy this, but to no avail.
Thank you.
]]>Here the error
WordPress errore sul database 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 'wp_id = 1 AND bookings.event_id=events.event_id AND CONCAT(events.event_start_da' at line 1 per la query select bookings.* from wp_eme_bookings as bookings,wp_eme_events as events where bookings.status=1AND wp_id = 1 AND bookings.event_id=events.event_id AND CONCAT(events.event_start_date,' ',events.event_start_time)>'2018-11-12 11:00:47' fatta da require_once('D:\inetpub\webs\mysite\wp-admin\user-edit.php'), do_action('show_user_profile'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, eme_user_profile, eme_get_bookings_list_for_wp_id, eme_get_bookings_by_wp_id
during research on a (different) problem I found a lot’s of lines in the error log regarding your plugin. 2 Examples:
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 'AND comment_type NOT IN ('atum_order_note', 'log_note') ORDER BY comment_date' at line 1 f\xc3\xbcr Abfrage SELECT wp_comments.* FROM wp_comments AND comment_type NOT IN ('atum_order_note', 'log_note') ORDER BY comment_date_gmt DESC LIMIT 20 von require('wp-blog-header.php'), wp, WP->main, WP->parse_request, apply_filters('request'), WP_Hook->apply_filters, woocommerce_mpay24cw_alter_the_query, woocommerce_mpay24cw_is_plugin_page, woocommerce_mpay24cw_get_page_id, url_to_postid, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
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 'AND comment_type NOT IN ('atum_order_note', 'log_note') ORDER BY comment_date' at line 1 f\xc3\xbcr Abfrage SELECT wp_comments.* FROM wp_comments AND comment_type NOT IN ('atum_order_note', 'log_note') ORDER BY comment_date_gmt DESC LIMIT 20 von require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
the first example references our payment provider plugin. the second one is not related to any plugin.
They all have this ‘at line 1 f\xc3\xbcr’ in common.
Best regards
Tom
—-BEGIN CUT—-
eNodzb0KwjAcBPDB7f8U9wBpaNoUJVsIoR3yUZPqLqWDELop+vambsfx486mFJOCETAdnA0KPSSG
C+Wl1ici/81XpzDwgUvRrKU05b3RLSfEzKBHGxaGu63YP1aYKUVvq2657Gj2WkHWLFp+pnmaD8hi
PuYk73q45/76kNNhVNh2+j/9APEvIyY=
—-END CUT—-
—-BEGIN RAW—-
ERROR: C1 C2 LEN: 3 4 58
STR:
MySQL: 5.5.41-cll-lve
USR OS, AGENT, VER: Mac CHROME 5.0.42
PMA: 4.0.10.7
PHP VER,OS: 5.4.23 Linux
LANG: en
SQL:
—-END RAW—-
SQL query:
MySQL said: Documentation
#1064 – 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 ‘PK’ at line 1
]]>Can you shed any light on this error and how to fix it?
[10-Aug-2014 07:00:22 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 ‘-20, 20’ at line 1 for query SELECT DISTINCT wp_ngg_pictures.* , GROUP_CONCAT(CONCAT_WS(‘@@’, meta_key, meta_value)) AS ‘extras’ FROM wp_ngg_pictures
LEFT OUTER JOIN wp_postmeta
ON wp_postmeta
.post_id
= extras_post_id
WHERE (exclude
= 0) AND (galleryid
IN (4)) GROUP BY wp_ngg_pictures.pid ORDER BY ABS(sortorder
) ASC, sortorder
ASC LIMIT -20, 20 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/cruel_intentions/page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, C_NextGen_Shortcode_Manager->parse_content, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, M_NextGen_Basic_Gallery->render,
Thanks!
Sam
https://www.ads-software.com/plugins/nextgen-gallery/
]]>