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 '' at line 1select * from paiement_en_ligne where cle_rubrique=23 and cle_article=id vient de: select * from livres where online like 'oui' order by ordre asc limit 3,1