Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/05/2011, 08:36
gromichs
 
Fecha de Ingreso: julio-2005
Mensajes: 66
Antigüedad: 18 años, 9 meses
Puntos: 1
Respuesta: Problema consulta

No me sale T_T no se que hacer con el MAX para la foto
Código MySQL:
Ver original
  1. SELECT noticias.titulo,noticias.noticia,noticias.categoria,foto.id_noticia,foto.foto
  2. FROM noticias n INNER JOIN fotos f ON n.id = f.id_noticias
  3. WHERE ID IN (
  4. FROM noticias
  5. GROUP BY categoria
  6. )
  7. ORDER BY categoria;

Quien me hecha una mano


Saludos