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 c.num_cat as numcat,c.titre as titre_categ, ss.num_ss_cat as numsscat,ss.titre as ss_titre_categ from ss_categorie ss inner join categorie c on ss.ref_cat = c.num_cat where num_ss_cat =