A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/gallery.php

Line Number: 92

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/gallery.php

Line Number: 109

Database Error

An Error Was Encountered

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 'AND is_active=1 ORDER BY position ASC LIMIT 0,200' at line 1

SELECT photo_id, fullname FROM gse_photos WHERE photo_category_id= AND is_active=1 ORDER BY position ASC LIMIT 0,200