A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/projetos.php

Line Number: 64

Database Error

A Database Error Occurred

Error Number: 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 'ORDER BY id ASC LIMIT 1' at line 1

SELECT * FROM projeto WHERE id > 49 AND id_categoria = ORDER BY id ASC LIMIT 1

Filename: /home/u363341078/domains/cristinasfranco.arq.br/public_html/controllers/projetos.php

Line Number: 65