It appears my website automatically updated WP 4.8.2 and now I am seeing the SQL errors and also am not able to log into my website. Website seems to be running fine but can not log in to update Wordfence.
Here is the error:
2017/09/20 12:41:08 [error] 897#897: *354 FastCGI sent in stderr: “PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘%1$s
WHERE user_caps
= ‘%2$s’
AND action
= ‘%3$s’
AND obje' at line 1 for query SELECT
histid` FROM %1$s
WHERE user_caps
= ‘%2$s’
AND action
= ‘%3$s’
AND object_type
= ‘%4$s’
AND object_subtype
= ‘%5$s’
AND object_name
= ‘%6$s’
AND user_id
= ‘%7$s’
AND hist_ip
= ‘%8$s’
AND hist_time
= ‘%9$s’
; made by wp_signon, do_action(‘wp_login’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, AAL_Hook_User->hooks_wp_login, aal_insert_log, AAL_API->insert, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘%2$d’ at line 2 for query DELETE FROM %1$s
WHERE hist_time
< %2$d made by wp_signon, do_action(‘wp_login’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, AAL_Hook_User->hooks_wp_login, aal_insert_log, AAL_API->insert, AAL_API->_delete_old_items, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
PHP message: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘%1$s
WHERE user_caps
= ‘%2$s’
AND action
= ‘%3$s’
AND obje' at line 1 for query SELECT
histid` FROM %1$s
WHERE user_caps
= ‘%2$s’
AND action
= ‘%3$s’
AND object_type
= ‘%4$s’
AN
2017/09/20 12:41:08 [error] 897#897: *354 upstream sent too big header while reading response header from upstream, client: XXXYYYZZZZ, server: https://www.XXXYYYZZZZ.com, request: “POST /wp-login.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm/php-fpm.sock:”, host: “www.XXXYYYZZZZ.com”, referrer: “https://www.XXXYYYZZZZ.com/wp-login.php”
Please advise.