A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/galleria.php

Line Number: 76

Database Error

A Database Error Occurred

Error Number: 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 'group by Tb_gallerie.id_galleria' at line 5

Select * from Tb_utenti inner join Tb_gallerie on Tb_utenti.id_utente = Tb_gallerie.idutente where Tb_utenti.id_utente = 96 and Tb_gallerie.id_galleria = group by Tb_gallerie.id_galleria