A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/home.php

Line Number: 79

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 sortorder asc' at line 1

SELECT * FROM gallery where cat_id = order by sortorder asc

Filename: /home/yuhl78jujwcc/public_html/controllers/home.php

Line Number: 80