Notice: Undefined variable: cirnro in /srv/www/itribu/htdocs/PortalTribunalElectoral/primarias2015/candidato_intendente.php on line 84 Notice: Undefined variable: cirlet in /srv/www/itribu/htdocs/PortalTribunalElectoral/primarias2015/candidato_intendente.php on line 85 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND lu.cirlet = '' ORDER BY p.numero_sorteo,l.numero_sorteo' at line 14' in /srv/www/itribu/htdocs/PortalTribunalElectoral/primarias2015/candidato_intendente.php:87 Stack trace: #0 /srv/www/itribu/htdocs/PortalTribunalElectoral/primarias2015/candidato_intendente.php(87): PDO->query(' SELECT l.numer...') #1 {main} thrown in /srv/www/itribu/htdocs/PortalTribunalElectoral/primarias2015/candidato_intendente.php on line 87