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 '= 1 AND Active = 1 AND ( Expires >= '2024-09-25' OR Expires = '0000-00-00' OR E' at line 1