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 m.idmarque=7' at line 1select nommarque,description,logomarque,icone from marques m,descriptionmarque d where m.idmarque=d.idmarque and idlangue= and m.idmarque=7