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 categorie_id = link_cat_categorie_id AND id_produit = link_cat_catalogue_id ' at line 2