SELECT * FROM pagine WHERE parente = AND flagAttivo = 1 #CHECK
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 flagAttivo = 1 #CHECK' at line 1