Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/12/2010, 10:26
kenproxd
 
Fecha de Ingreso: agosto-2009
Mensajes: 349
Antigüedad: 14 años, 9 meses
Puntos: 8
Respuesta: Problema al relacionar dos campos de distintas tablas

Cita:
Iniciado por Hidek1 Ver Mensaje
Código PHP:
Ver original
  1. $post_id = row1['topic_first_post'];

row1 ?.... no sera $row1 ???
*loool*
Muchas gracias! XD se me paso totalmente.

Ahora me surgió otro problema. Al hacer la consulta me imprime el siguiente error:

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 'ORDER BY topic_id DESC LIMIT 0,3' at line 1

Supongo que el problema esta en la cláusula WHERE:

Código PHP:
Ver original
  1. WHERE post_id = '.$post_id.'

Alguna idea?