Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND argitalpdata <= '2021-04-16' AND status = 1 ' at line 2 in /home/cpielittoralbas/public_html/lib/phpikus/erlaitza-aurkezpena.inc.php:32 Stack trace: #0 /home/cpielittoralbas/public_html/lib/phpikus/erlaitza-aurkezpena.inc.php(32): PDO->query('SELECT * from a...') #1 /home/cpielittoralbas/public_html/erlaitza/index.php(652): include('/home/cpielitto...') #2 {main} thrown in /home/cpielittoralbas/public_html/lib/phpikus/erlaitza-aurkezpena.inc.php on line 32