Blog

// -


Warning: Missing argument 1 for DAO::__construct(), called in /home/osc/public_html/admin/inc/dao/LogDAO.php on line 21 and defined in /home/osc/public_html/admin/inc/dao/DAO.php on line 21

Warning: Missing argument 2 for DAO::__construct(), called in /home/osc/public_html/admin/inc/dao/LogDAO.php on line 21 and defined in /home/osc/public_html/admin/inc/dao/DAO.php on line 21
Mensagem: 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 'ORDER BY titulo' at line 1

Arquivo: /home/osc/public_html/admin/inc/PU.php

Linha: 209

Fluxo do Erro:
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 'ORDER BY titulo' at line 1' in /home/osc/public_html/admin/inc/PU.php:209
Stack trace:
#0 /home/osc/public_html/admin/inc/PU.php(209): PDO->query('SELECT * FROM c...')
#1 /home/osc/public_html/admin/inc/dao/CmsConteudoFotoDAO.php(23): PU->select('cms_conteudo_fo...', 'id_conteudo = ', 'titulo')
#2 /home/osc/public_html/admin/inc/class/ClassCmsConteudoFoto.php(77): CmsConteudoFotoDAO->selecionarConteudoFotoPorIdConteudo(NULL)
#3 /home/osc/public_html/BlogDetalhe.php(68): cms_conteudo_foto->selecionarConteudoFotoPorIdConteudo(NULL)
#4 {main}


PDO ErrorInfo:
array (
  0 => '42000',
  1 => 1064,
  2 => '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 \'ORDER BY titulo\' at line 1',
)

SQL:
POST:
array (
)

GET:
array (
  'id_conteudo' => '64',
  'titulo' => 'cafE-da-manhA-rural',
)

SESSION:
array (
)


Fatal error: Call to undefined method DAO::insert() in /home/osc/public_html/admin/inc/dao/LogDAO.php on line 45