WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
SELECT * FROM `wp_votes_tbl` WHERE `ip` = "3.229.117.123" AND (SELECT DATEDIFF("2022-08-09", `date`) < 1 ) AND `termid` =