SQL ERROR: 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 ((NOW() BETWEEN offrePrix_datetimeDebut and offrePrix_datetimeFin) OR (NOW()' at line 12
select gammeTopOffre_gammeId, gammeTopOffre_offreId, gammeTopOffre_position, offre_id, offre_nom, offrePrix_prix, offrePrix_datetimeDebut, offreProduit_defaut, offrePrix_datetimeFin, offrePrix_prixNormal, produit_nom, produit_stock, produitVisu_produitId, produitVisu_fichier, produit_enCrossDock, produit_poids, offre_visuFichier from offres left join gamme_topoffres on offre_id=gammeTopOffre_offreId left join offre_prix on offre_id=offrePrix_offreId left join offre_produits on offre_id=offreProduit_offreId left join produits on offreProduit_produitId=produit_id left join produit_visus on produit_visuDefautId=produitVisu_id where gammeTopOffre_gammeId= and ((NOW() BETWEEN offrePrix_datetimeDebut and offrePrix_datetimeFin) OR (NOW()>offrePrix_datetimeDebut and offrePrix_datetimeFin is null)) and (offre_nom is not null or offreProduit_defaut=1) order by gammeTopOffre_position
SQL ERROR: 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 ordre DESC, gamme_nom' at line 4
SELECT gamme_nom, gamme_id FROM gammes WHERE gamme_parentId= ORDER BY ordre DESC, gamme_nom