Managed MySQL database error: Unknown column in 'where clause'


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:


What could be the difference between the databases that’s causing that issue? and how may I be able to fix it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The error that you are receiving is that the specific column edd_payment_note that you are requesting isn’t found in the DB/table that you are requesting it from.

You would need to login to your Managed DB and confirm that you have the correct database there, that it has the correct tables, and the correct fields.

There aren’t any differences between the two, but perhaps there was a part of a setup that was missed which is why a field or table maybe missing between the two.

You can use the describe function in MySQL to show what columns are in a database.

MYSQL> use database_name;
MYSQL> describe table_name;

Do that on both servers and compare them to ensure that they match.