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 MariaDB server version for the right syntax to use near 'AND CP.Id_Pais = 2 ORDER BY CP.Orden' at line 1 in /home/s81lssa9xn4v/public_html/cms/library/lib_cms_db.php:35
Stack trace:
#0 /home/s81lssa9xn4v/public_html/cms/library/lib_cms_db.php(35): PDO->query('SELECT P.*, C.N...')
#1 /home/s81lssa9xn4v/public_html/portfolio-list.php(34): cms_hacerConsulta('SELECT P.*, C.N...', Object(PDO))
#2 /home/s81lssa9xn4v/public_html/index.php(54): include('/home/s81lssa9x...')
#3 {main}
thrown in /home/s81lssa9xn4v/public_html/cms/library/lib_cms_db.php on line 35