Severity: Notice
Message: Undefined offset: 0
Filename: controllers/welcome.php
Line Number: 379
Severity: Notice
Message: Trying to access array offset on value of type null
Filename: controllers/welcome.php
Line Number: 380
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 post_id desc' at line 1
SELECT * FROM posts where catid in(select catid from category where catname='News') and priority = order by post_id desc
Filename: models/connect.php
Line Number: 97