sql is SELECT * FROM is_content WHERE parentid= AND status='A' AND hide_nav=0 ORDER BY sequence DESC, title 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 'AND status='A' AND hide_nav=0 ORDER BY sequence DESC, title' at line 1