Database error: Invalid SQL: SELECT annonces.* FROM annonces INNER JOIN partenaires ON annonces.id_partenaires = partenaires.id_partenaires INNER JOIN agence ON partenaires.id_agence = agence.id_agence INNER JOIN lien_annonces_photo ON annonces.id_annonce=lien_annonces_photo.id_annonce WHERE annonces.id_annonce=lien_annonces_photo.id_annonce AND partenaires.id_agence = '%25' AND annonces.id_sous_types = 1 AND annonces.id_types_annonce=3 AND annonces.prix_annonce >=%25 AND annonces.id_types_bien=2 AND annonces.id_4 = 1 AND (annonces.etat = 1 OR annonces.etat = 2) and annonces.paiement_valid=1 and annonces.fini = 0 AND annonces.prix_annonce <=%25 GROUP BY annonces.id_annonce ORDER BY annonces.date_depot DESC
MySQL Error: 1064 (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 '%25 AND annonces.id_types_bien=2 AND annonces.id_4 = 1 AND (annonces.etat = 1 OR' at line 1)
Session halted.