Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/11/2014, 14:12
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: #1064 - You have an error in your SQL syntax

Digo fuera de que tienes un grave problema propenso de SQL inyection, el problema es que te falta un AND en tus condiciones para borrar, ejemplo:
Código SQL:
Ver original
  1. DELETE FROM `foo` WHERE `bar`='baz' AND `bat`=`bar`