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