Hideks Framework

Error

Ops!!

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 '-5' at line 1' in /var/www/html/sexboys.com.br/vendor/php-activerecord/php-activerecord/lib/Connection.php:322 Stack trace: #0 /var/www/html/sexboys.com.br/vendor/php-activerecord/php-activerecord/lib/Connection.php(322): PDOStatement->execute(Array) #1 /var/www/html/sexboys.com.br/vendor/php-activerecord/php-activerecord/lib/Table.php(218): ActiveRecord\Connection->query('SELECT distinct...', Array) #2 /var/www/html/sexboys.com.br/vendor/php-activerecord/php-activerecord/lib/Table.php(209): ActiveRecord\Table->find_by_sql('SELECT distinct...', Array, false, NULL) #3 /var/www/html/sexboys.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/sexboys.com.br/vendor/php-activerecord/php-activerecord/lib/Model.php(1395): call_user_func_array('static::find', Array) #6 /var/www/html/sexboys.com.br/application/controllers/Videos.php(354): ActiveRecord\Model::all(Array) #7 /var/www/html/sexboys.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Controller/Front.php(54): Videos->selecionadoAction() #8 /var/www/html/sexboys.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application/FrontController.php(93): Hideks\Controller\Front->dispatch() #9 /var/www/html/sexboys.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application/Main.php(46): Hideks\Application\FrontController->dispatch() #10 /var/www/html/sexboys.com.br/vendor/hidekscorporation/hideksframework/library/Hideks/Application.php(84): Hideks\Application\Main->run() #11 /var/www/html/sexboys.com.br/public/index.php(28): Hideks\Application->run() #12 {main}

  • File: /vendor/php-activerecord/php-activerecord/lib/Connection.php

  • Line: 325

Learn more

Trace Route

# Function File Line
11 ActiveRecord\Connection->query(SELECT distinct(vi_id), vi_titulo, vi_duracao FROM `videos` left join videos_modelos ON v_m_vi_id = vi_id WHERE vi_ativo = 1 and v_m_mo_id = ? and vi_id not in ('178') LIMIT -5) /vendor/php-activerecord/php-activerecord/lib/Table.php 218
10 ActiveRecord\Table->find_by_sql(SELECT distinct(vi_id), vi_titulo, vi_duracao FROM `videos` left join videos_modelos ON v_m_vi_id = vi_id WHERE vi_ativo = 1 and v_m_mo_id = ? and vi_id not in ('178') LIMIT -5) /vendor/php-activerecord/php-activerecord/lib/Table.php 209
9 ActiveRecord\Table->find(Array) /vendor/php-activerecord/php-activerecord/lib/Model.php 1567
8 ActiveRecord\Model::find(all)
7 call_user_func_array(static::find) /vendor/php-activerecord/php-activerecord/lib/Model.php 1395
6 ActiveRecord\Model::all(Array) /application/controllers/Videos.php 354
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