Ver Mensaje Individual
  #14 (permalink)  
Antiguo 21/12/2009, 13:59
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: Relacionar 2 tablas

Gracias, el valor 0 indica que es un tema, si no es 0 es una respuesta.
Pero no anda bien :S.. me da este error:
#1064 - 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 'GROUP BY foro.id
LIMIT 0, 30' at line 1

pero si borro el ORDER BY foro.posision DESC anda :S.. pero me devuelve mal los datos. Me devuelve en mensajes 210 y en temas 210, pero solo hay 35 mensajes y 5 temas :S.
Salu2
__________________
Half Music - www.halfmusic.com