Erro SQL query-> Select c.Data , c.Seccio, c.Tema, c.Hora, c.Plantilla, c. Ordre,c.id_site, c.fotos_ser, c.page_fons, c.lloc, c.immoble,c.data_final,c.poblacio, cd.*, t.Tema AS T, s.Seccio as S from continguts c JOIN continguts_idioma cd on cd.id_contingut = c.Id JOIN temes t on t.Idtema = c.Tema JOIN seccions s on s.IdSeccio = c.Seccio where c.Id = ' elionor d'aquitània' and c.id_site='2' 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 'aquitània' and c.id_site='2'' at line 1