No valid database connection 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 'order by p.ordre' at line 3 SQL=SELECT * FROM jos_photo p
JOIN jos_hotel h ON h.id_hotel = p.hotel_id_hotel
WHERE hotel_id_hotel = order by p.ordre No valid database connection 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 ph.nom_page ="restaurant"' at line 2 SQL=SELECT ph.* FROM jos_page_hotel ph
WHERE hotel_id_hotel = AND ph.nom_page ="restaurant"