Erreur SQL !
SELECT categorie.id_categorie AS id_categorie,id_parent_categorie,id_grandparent_categorie FROM site,categorie WHERE site.id_categorie=categorie.id_categorie AND id_parent_categorie!=0 AND (id_parent_categorie= OR id_grandparent_categorie=)
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 'OR id_grandparent_categorie=)' at line 1