Unhandled Exception

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 ')' at line 1

SQL: SELECT COUNT(*) AS `aggregate` FROM `companies` WHERE `id` IN ()

Bindings: array (
)

Location:

/data/laravel/database/connection.php on line 263

Stack Trace:

#0 /data/laravel/database/connection.php(183): Laravel\Database\Connection->execute('SELECT COUNT(*)...', Array)
#1 /data/laravel/database/connection.php(166): Laravel\Database\Connection->query('SELECT COUNT(*)...', Array)
#2 /data/laravel/database/connection.php(144): Laravel\Database\Connection->first('SELECT COUNT(*)...', Array)
#3 /data/laravel/database/query.php(685): Laravel\Database\Connection->only('SELECT COUNT(*)...', Array)
#4 /data/laravel/database/query.php(878): Laravel\Database\Query->aggregate('COUNT', Array)
#5 /data/laravel/database/query.php(709): Laravel\Database\Query->__call('count', Array)
#6 /data/laravel/database/query.php(709): Laravel\Database\Query->count('*')
#7 /data/laravel/database/eloquent/query.php(91): Laravel\Database\Query->paginate(5, Array)
#8 /data/application/controllers/home.php(133): Laravel\Database\Eloquent\Query->paginate(5)
#9 [internal function]: Home_Controller->get_featured_lobs_list('WA', 'cashmere', '29336', 'photographers')
#10 /data/laravel/routing/controller.php(325): call_user_func_array(Array, Array)
#11 /data/laravel/routing/controller.php(285): Laravel\Routing\Controller->response('featured_lobs_l...', Array)
#12 /data/laravel/routing/controller.php(165): Laravel\Routing\Controller->execute('featured_lobs_l...', Array)
#13 /data/laravel/routing/route.php(153): Laravel\Routing\Controller::call('home@featured_l...', Array)
#14 /data/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#15 /data/laravel/laravel.php(125): Laravel\Routing\Route->call()
#16 /data/public/index.php(35): require('/data/laravel/l...')
#17 {main}