
13/06/2006, 13:23
|
| | Fecha de Ingreso: junio-2006
Mensajes: 2
Antigüedad: 18 años, 9 meses Puntos: 0 | |
Resuelto el LEFT JOIN a 3 tablas :
SELECT COUNT(nc.idn) AS comentarios, n.id_news, n.title_en
FROM (news n LEFT JOIN news_cat nct ON n.category = nct.id_ncat) LEFT JOIN news_comm nc ON n.id_news = nc.idn
WHERE n.status = 1
GROUP BY n.id_news
ORDER BY n.updated DESC |