Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/05/2009, 18:44
manolo_manolo
 
Fecha de Ingreso: octubre-2008
Ubicación: Alicante
Mensajes: 337
Antigüedad: 15 años, 6 meses
Puntos: 9
Respuesta: Pregunta simple sobre DISTINC

Para intentar hacerlo más facil he optado por tirar el ORDER BY RAND() a tomar por cul... y así es como he dejado la consulta fácil:

Cita:
"SELECT * FROM peliculas WHERE genero='".$genero."' AND nombre_web!='".$nombre_web."' GROUP BY nombre_web ORDER BY registro DESC LIMIT 5"
Pero aún así el ORDER BY registro DESC se lo pasa por el forro!!