Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Colum in where clause, error code 1054 #129

Open
samjaninf opened this issue Dec 18, 2023 · 0 comments
Open

Unknown Colum in where clause, error code 1054 #129

samjaninf opened this issue Dec 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@samjaninf
Copy link

Expected Behavior

All the SQL queries should complete properly.

Not sure if this just my weird setup or what but I get an error in querymon. I got a similar error with a bit of php I was running (Cavalcade Runner) that utilized the double quotes instead of the single quotes in a query. I had to manually go in and change the query to put single quotes around the string and I also added the back tick around the column names in the where clause. So instead of:

SELECT COUNT(*)
FROM `wp_wpmailsmtp_debug_events`
WHERE event_type = 0
AND created_at >= "2023-11-18 09:26:37"

I changed it to something like:

SELECT COUNT(*)
FROM `wp_wpmailsmtp_debug_events`
WHERE event_type = 0
AND `created_at` >= '2023-11-18 09:26:37'

Current Behavior

Nothing disastrous so far, just one bug in query monitor when I go to the dashboard.

Possible Solution

Probably strictly adherence to the SQL language strictures. (Just change around a couple of quotes I think). I don't even know if this is relevant to you guys tbh. I never had these issues with MariaDB. And tbh, everything seems to be working properly as far as I can tell.

Steps to Reproduce

  1. Have a WP site on a mysql 8 instance.
  2. install wm-mail-smtp
  3. install querymon
  4. go to the back end dashboard

Screenshots

image

@samjaninf samjaninf added the bug Something isn't working label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant