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 nav_seq != 0 and nav_seq != 0 and language = 'de' and organisation = '' at line 2select nav_seq from navigation where nav_parent = and nav_seq != 0 and nav_seq != 0 and language = 'de' and organisation = '001'