A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/category.php

Line Number: 22

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 'ORDER BY `sort_order` LIMIT 8' at line 6

SELECT `caption`, `id`, `cat_id`, `slug`, `imagefull`, `srtdes` FROM (`category_type`) WHERE `status` = '1' AND `cat_id` IS NULL AND `id` != ORDER BY `sort_order` LIMIT 8

Filename: /home/wholesalepashmin/public_html/core/MY_Model.php

Line Number: 58