Warning: Invalid argument supplied for foreach() in D:\inetpub\siteQI\unidades\index.php on line 127

Estrutura

Warning: Invalid argument supplied for foreach() in D:\inetpub\siteQI\unidades\index.php on line 153 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ')'.' in D:\inetpub\siteQI\persistencia\model.class.php:20 Stack trace: #0 D:\inetpub\siteQI\persistencia\model.class.php(20): PDO->query('SELECT * FROM S...') #1 D:\inetpub\siteQI\unidades\index.php(156): DAOModel::buscar('imagem', ' where codimage...') #2 {main} thrown in D:\inetpub\siteQI\persistencia\model.class.php on line 20