Im having the same problem with version 8.1.9.
Almost the same database error near ‘)))
[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 wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp’ at line 3]
No problems with version 8.1.6 so ive downgraded to that version for the time being.
Custom posttypes seem te generate a JS error:
Uncaught TypeError: Cannot read property ‘replace’ of undefined
file: wp-category-permalink.js?ver=1.0:70
Also affects the default wordpress ‘quick edit’, doesnt work anymore since this JS error.