Notice: Undefined variable: cirlet in /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php on line 78 Notice: Undefined variable: cirnro in /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php on line 78 Notice: Undefined variable: cirnro in /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php on line 94 Notice: Undefined variable: cirlet in /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php on line 95 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/elecciones2017/primarias2017/candidato_intendente.php:97 Stack trace: #0 /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php(97): PDO->query(' SELECT l.numer...') #1 {main} thrown in /srv/www/itribu/htdocs/elecciones2017/primarias2017/candidato_intendente.php on line 97