Hello,
I found a similar problem here from last year, but didn’t see a solution to it, so I’ll post my own issue and hopefully someone can help.
I am not sure what has happened, as I just saw this happening suddenly (been a while since I’ve done any major updates)
I keep getting this Database error popping up here and there throughout my website:
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 ‘rows FROM wp_geodir_custom_advance_search_fields where post_type= ‘gd_sightings” at line 1]
SELECT count(id) as rows FROM wp_geodir_custom_advance_search_fields where post_type= ‘gd_sightings’ AND main_search!=’1′
Any idea how to fix it?
Thanks