SELECT r.R_ID, r.RG_ID, rt.Nombre, rt.DC_Title, rt.MD_Keywords, rt.DC_Descripcion FROM tbl_regiones_text as rt, tbl_regiones as r WHERE rt.R_ID=r.R_ID AND r.R_ID= AND rt.lang LIKE 'ESP':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 rt.lang LIKE 'ESP'' at line 2