Livro E - E

Recomendados

Array ( [__wakeup] => [getMessage] => Mysql Erro: 42S22SQLSTATE[42S22]: Column not found: 1054 Unknown column 'E' in 'where clause' [getCode] => 201 [getFile] => /home/mega/public_html/system/BC_Database.php [getLine] => 31 [getTrace] => Array ( [0] => Array ( [file] => /home/mega/public_html/application/models/Model_mysql.php [line] => 313 [function] => select [class] => BC_Database [type] => -> [args] => Array ( [0] => SELECT t1.id, t1.titulo, t5.nome AS autor, t3.id AS id_estoque, t3.valor AS preco, t3.id_vendedor, SUM(t3.quantidade) AS diferenca FROM acervo t1 INNER JOIN autores t5 ON (t1.autor = t5.id) INNER JOIN estoque t3 ON (t1.id = t3.id_acervo) WHERE t1.id != E AND ( t1.autor = 'E' OR t1.subcategoria = 'E' ) GROUP BY t1.id HAVING diferenca > 0 ORDER BY RAND() LIMIT 5 ) ) [1] => Array ( [file] => /home/mega/public_html/application/controllers/livro.php [line] => 133 [function] => selquery [class] => Model_mysql [type] => -> [args] => Array ( [0] => SELECT t1.id, t1.titulo, t5.nome AS autor, t3.id AS id_estoque, t3.valor AS preco, t3.id_vendedor, SUM(t3.quantidade) AS diferenca FROM acervo t1 INNER JOIN autores t5 ON (t1.autor = t5.id) INNER JOIN estoque t3 ON (t1.id = t3.id_acervo) WHERE t1.id != E AND ( t1.autor = 'E' OR t1.subcategoria = 'E' ) GROUP BY t1.id HAVING diferenca > 0 ORDER BY RAND() LIMIT 5 ) ) [2] => Array ( [file] => /home/mega/public_html/application/views/default/books/description_book.phtml [line] => 109 [function] => recomendados [class] => livro [type] => -> [args] => Array ( [0] => E [1] => E [2] => E ) ) [3] => Array ( [file] => /home/mega/public_html/system/BC_Controller.php [line] => 110 [args] => Array ( [0] => /home/mega/public_html/application/views/default/books/description_book.phtml ) [function] => require ) [4] => Array ( [file] => /home/mega/public_html/application/controllers/livro.php [line] => 116 [function] => loadView [class] => BC_Controller [type] => -> [args] => Array ( [0] => books/description_book [1] => Array ( [0] => eee [1] => 2 [2] => 83206 [book] => Erro ) ) ) [5] => Array ( [file] => /home/mega/public_html/system/BC_Router.php [line] => 53 [function] => estante [class] => livro [type] => -> [args] => Array ( [0] => Array ( [0] => eee [1] => 2 [2] => 83206 [book] => Erro ) ) ) [6] => Array ( [file] => /home/mega/public_html/index.php [line] => 71 [function] => run [class] => BC_Router [type] => :: [args] => Array ( [0] => BC_Request Object ( [_controler:BC_Request:private] => livro [_method:BC_Request:private] => estante [_arguments:BC_Request:private] => Array ( [0] => eee [1] => 2 [2] => 83206 ) [_get:BC_Request:private] => Array ( ) ) ) ) ) [getPrevious] => [getTraceAsString] => #0 /home/mega/public_html/application/models/Model_mysql.php(313): BC_Database->select('\t\t\t\t\t\t\r\n\t\t\tSELE...') #1 /home/mega/public_html/application/controllers/livro.php(133): Model_mysql->selquery('\t\t\t\t\t\t\r\n\t\t\tSELE...') #2 /home/mega/public_html/application/views/default/books/description_book.phtml(109): livro->recomendados('E', 'E', 'E') #3 /home/mega/public_html/system/BC_Controller.php(110): require('/home/mega/publ...') #4 /home/mega/public_html/application/controllers/livro.php(116): BC_Controller->loadView('books/descripti...', Array) #5 /home/mega/public_html/system/BC_Router.php(53): livro->estante(Array) #6 /home/mega/public_html/index.php(71): BC_Router::run(Object(BC_Request)) #7 {main} [__toString] => PDOException: Mysql Erro: 42S22SQLSTATE[42S22]: Column not found: 1054 Unknown column 'E' in 'where clause' in /home/mega/public_html/system/BC_Database.php:31 Stack trace: #0 /home/mega/public_html/application/models/Model_mysql.php(313): BC_Database->select('\t\t\t\t\t\t\r\n\t\t\tSELE...') #1 /home/mega/public_html/application/controllers/livro.php(133): Model_mysql->selquery('\t\t\t\t\t\t\r\n\t\t\tSELE...') #2 /home/mega/public_html/application/views/default/books/description_book.phtml(109): livro->recomendados('E', 'E', 'E') #3 /home/mega/public_html/system/BC_Controller.php(110): require('/home/mega/publ...') #4 /home/mega/public_html/application/controllers/livro.php(116): BC_Controller->loadView('books/descripti...', Array) #5 /home/mega/public_html/system/BC_Router.php(53): livro->estante(Array) #6 /home/mega/public_html/index.php(71): BC_Router::run(Object(BC_Request)) #7 {main} )

Ouve um erro ao executar...