Database error message appearing
-
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 'AND author_id = 0' at line 1] SELECT * FROM wp_ayssurvey_surveys WHERE status != 'trashed' ORDER BY id DESC AND author_id = 0I’m seeing the above error message with Survey Maker 3.4.5. It looks as if the query has been constructed in the wrong order?
I’ve run it manually against the database and hit the same message, but it works if I rearrange the query to:
SELECT * FROM wp_ayssurvey_surveys WHERE status != 'trashed' AND author_id=0 ORDER BY id DESC;This is not breaking the survey or the site as far as I can tell, but it’s clearly not doing something it wants to.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Database error message appearing’ is closed to new replies.