Ver Mensaje Individual
  #8 (permalink)  
Antiguo 06/06/2009, 02:48
Avatar de Fernand0
Fernand0
 
Fecha de Ingreso: septiembre-2005
Ubicación: Buenos Aires
Mensajes: 610
Antigüedad: 18 años, 7 meses
Puntos: 19
Respuesta: SQL Limit con Join

._.

No sabia que se podian hacer "subqueries"

Quedo asi al final

Código PHP:
SELECT 
FROM images 
JOIN 
(SELECT FROM works WHERE images!="NULL" ORDER BY wID DESC LIMIT 4Q1 
ON images
.wName=Q1.wName 
WHERE images.0rder
<
ORDER BY Q1
.wID DESCimages.0rder ASC 
Muchas gracias jurena :)