Fatal error: Uncaught PDOException: 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 cat_id_consorcio = 2' at line 1 in /homepages/46/d806486394/htdocs/publico/includes/fn_categoria.php:13
Stack trace:
#0 /homepages/46/d806486394/htdocs/publico/includes/fn_categoria.php(13): PDO->query()
#1 /homepages/46/d806486394/htdocs/publico/secciones/categoria.php(3): obtener_nombre_categoria()
#2 /homepages/46/d806486394/htdocs/publico/index.php(134): require_once('/homepages/46/d...')
#3 {main}
thrown in /homepages/46/d806486394/htdocs/publico/includes/fn_categoria.php on line 13