La consulta select noTema, t.texto as tema, noUnidad, nombre, c.texto from temas t inner join unidades u on t.idUnidad=u.idUnidad inner join contenidos c on t.idTema=c.idTema where (u.generacion= or u.generacion=0) and u.idMateria=3 and u.noUnidad= and t.texto like '%%' order by noTema, t.idTema no regresó resultados