SELECT Identifiant FROM biens_photosv5 WHERE IdentifiantBien = AND Visible='Oui' ORDER BY Ordre
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND Visible='Oui' ORDER BY Ordre' at line 1