SELECT name,text FROM bildordner WHERE id= AND bildordner.display='YES' SELECT_HASH error SELECT name,text FROM bildordner WHERE id= AND bildordner.display='YES' 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 bildordner.display='YES'' at line 1