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 MariaDB server version for the right syntax to use near 'AND (DATE_FORMAT(`date_of_birth`, '%e')) = 0' at line 4 in /home/babyhu5/public_html/printablecalendar.php:49 Stack trace: #0 /home/babyhu5/public_html/printablecalendar.php(49): PDOStatement->execute(Array) #1 {main} thrown in /home/babyhu5/public_html/printablecalendar.php on line 49