FICSantarém 

Fatal error: Uncaught mysqli_sql_exception: 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 AgendaID = ?' at line 4 in /home/ficsanta/public_html/actividade.php:64 Stack trace: #0 /home/ficsanta/public_html/actividade.php(64): mysqli->prepare() #1 {main} thrown in /home/ficsanta/public_html/actividade.php on line 64