Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/05/2010, 07:13
Avatar de angel1993
angel1993
 
Fecha de Ingreso: octubre-2009
Mensajes: 752
Antigüedad: 14 años, 6 meses
Puntos: 22
Problema con join

Código SQL:
Ver original
  1. SELECT campoid,SUM(tipo) AS tipoo FROM plantas
  2. LEFT JOIN usuarios.idu,usuarios.nombre ON plantas.campoid=usuarios.idu
  3.  GROUP BY campoid ORDER BY tipoo DESC LIMIT 20

me dice
errroYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usuarios.nombre ON plantas.campoid=usuarios.idu group by campoid order by tipo' at line 2