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 ord' at line 4
SELECT t.*, IF((SELECT COUNT(*) FROM categories WHERE parent_id=t.id)>0, 1, 0) AS notLast FROM categories t WHERE parent_id= ORDER BY ord
Filename: /home/partyservice/public_html/models/category_model.php
Line Number: 66