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 1 SELECT metatitle_produit AS mtitle, metadesc_produit AS mdesc, metakey_produit AS mkey FROM dg_produit WHERE id_produit=