Warning: Attempt to read property "idPrincipal" on bool in /home/ativokid/public_html/cont/products.php on line 26

Warning: Attempt to read property "idPrincipal" on bool in /home/ativokid/public_html/cont/products.php on line 29

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 ( NOW()>= dataFimAcessoAntec or dataFimAcessoAntec is null ) AND dataLan...' at line 1 in /home/ativokid/public_html/source/Models/Menus/Menus.php:33 Stack trace: #0 /home/ativokid/public_html/source/Models/Menus/Menus.php(33): PDO->query('select * from m...') #1 /home/ativokid/public_html/cont/products.php(29): source\Models\Menus\Menus->lista(NULL, 0) #2 /home/ativokid/public_html/verifica_page.php(11): require('/home/ativokid/...') #3 /home/ativokid/public_html/index.php(264): require_once('/home/ativokid/...') #4 {main} thrown in /home/ativokid/public_html/source/Models/Menus/Menus.php on line 33