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 ce_publicado <= NOW() ORDER BY ce_publicado desc' at line 7 in /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Connection.php:322 Stack trace: #0 /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Connection.php(322): PDOStatement->execute(Array) #1 /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Table.php(218): ActiveRecord\Connection->query('SELECT ce_id,\r\n...', Array) #2 /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Table.php(209): ActiveRecord\Table->find_by_sql('SELECT ce_id,\r\n...', Array, false, NULL) #3 /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Model.php(1567): ActiveRecord\Table->find(Array) #4 [internal function]: ActiveRecord\Model::find('all', Array) #5 /var/www/html/buttman.com.br/vendor/php-activerecord/php-activerecord/lib/Model.php(1395): call_user_func_array('static::find', Array) #6 /var/www/html/buttman.com.br/application/models/Video.php(301): ActiveRecord\Model::all(Array) #7 /var/www/html/buttman.com.br/application/controllers/Videos.php(198): Video::videoSelecionadoRelacionados(Object(Videos), '1151,1145,1122,...') #8 /var/www/html/buttman.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Controller/Front.php(54): Videos->selecionadoAction() #9 /var/www/html/buttman.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application/FrontController.php(93): Hideks\Controller\Front->dispatch() #10 /var/www/html/buttman.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application/Main.php(46): Hideks\Application\FrontController->dispatch() #11 /var/www/html/buttman.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application.php(84): Hideks\Application\Main->run() #12 /var/www/html/buttman.com.br/public/index.php(28): Hideks\Application->run() #13 {main}
File: /vendor/php-activerecord/php-activerecord/lib/Connection.php
Line: 325
# | Function | File | Line |
---|---|---|---|
12 | ActiveRecord\Connection->query(SELECT ce_id, ce_titulo, ce_descricao, ce_duracao FROM `cenas` WHERE ce_ativo = 1 and ce_id in(1151,1145,1122,1118,1096,) and ce_publicado <= NOW() ORDER BY ce_publicado desc) | /vendor/php-activerecord/php-activerecord/lib/Table.php | 218 |
11 | ActiveRecord\Table->find_by_sql(SELECT ce_id, ce_titulo, ce_descricao, ce_duracao FROM `cenas` WHERE ce_ativo = 1 and ce_id in(1151,1145,1122,1118,1096,) and ce_publicado <= NOW() ORDER BY ce_publicado desc) | /vendor/php-activerecord/php-activerecord/lib/Table.php | 209 |
10 | ActiveRecord\Table->find(Array) | /vendor/php-activerecord/php-activerecord/lib/Model.php | 1567 |
9 | ActiveRecord\Model::find(all) | ||
8 | call_user_func_array(static::find) | /vendor/php-activerecord/php-activerecord/lib/Model.php | 1395 |
7 | ActiveRecord\Model::all(Array) | /application/models/Video.php | 301 |
6 | Video::videoSelecionadoRelacionados(Array) | /application/controllers/Videos.php | 198 |
5 | Videos->selecionadoAction() | /vendor/hidekscorporation/hideksframework/library/Hideks/Controller/Front.php | 54 |
4 | Hideks\Controller\Front->dispatch() | /vendor/hidekscorporation/hideksframework/library/Hideks/Application/FrontController.php | 93 |
3 | Hideks\Application\FrontController->dispatch() | /vendor/hidekscorporation/hideksframework/library/Hideks/Application/Main.php | 46 |
2 | Hideks\Application\Main->run() | /vendor/hidekscorporation/hideksframework/library/Hideks/Application.php | 84 |
1 | Hideks\Application->run() | /public/index.php | 28 |
# | Function | File | Line |