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 IDEMPRESA = 1
order by ID_' at line 3 in /home/storage/d/ba/af/cecalcanas1/public_html/blog/carousel.php:35
Stack trace:
#0 /home/storage/d/ba/af/cecalcanas1/public_html/blog/carousel.php(35): PDO->query('Select * from a...')
#1 /home/storage/d/ba/af/cecalcanas1/public_html/blog/index.php(6): include_once('/home/storage/d...')
#2 {main}
thrown in
/home/storage/d/ba/af/cecalcanas1/public_html/blog/carousel.php on line
35