Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/03/2009, 15:42
Avatar de Genetix
Genetix
 
Fecha de Ingreso: febrero-2002
Ubicación: Lima - Perú
Mensajes: 1.600
Antigüedad: 22 años, 3 meses
Puntos: 45
Respuesta: Como cuento/pagino esta query?

prueba de esta manera
Código sql:
Ver original
  1. SELECT COUNT(DISTINCT a.id_video ) AS total FROM categorizado AS a
  2. INNER JOIN videos AS r ON a.id_video = r.id
  3. INNER JOIN categorias AS c ON c.id = a.id_cat
  4. WHERE a.id_cat IN (6, 52, 78, 140, 141, 157)
__________________
"El conocimiento nos hace responsables."
twitter: @benjamingb
blog personal: http://codigolinea.com
ZF Manual en español http://manual.zfdes.com