Question
Managed MySQL database error: Unknown column in 'where clause'
Hello,
I am using OpenLiteSpeed WordPress 1-Click from the marketplace and a Managed MySQL 8 Database.
There’s a specific and well known plugin I need to run the website: Easy Digital Downloads. On a fresh install, with only that plugin active I am getting a database error:
WordPress database error: [Unknown column 'edd_payment_note' in 'where clause']
SELECT comment_approved, COUNT( * ) AS num_comments FROM wp_comments WHERE comment_type != "edd_payment_note" GROUP BY comment_approved
The error seems present only with the Managed DB. Using the provided MariaDB 10.4 from the droplet the plugin works just fine.
The Global SQL mode has the default settings:
ANSI_QUOTES
ERROR_FOR_DIVISION_BY_ZERO
IGNORE_SPACE
NO_ENGINE_SUBSTITUTION
NO_ZERO_DATE
NO_ZERO_IN_DATE
ONLY_FULL_GROUP_BY
PIPES_AS_CONCAT
REAL_AS_FLOAT
STRICT_ALL_TABLES
What could be the difference between the databases that’s causing that issue? and how may I be able to fix it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×