Database Problem

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
SELECT COUNT(*) AS num FROM videodata WHERE videodata.owner_id =

***Stack Traceback - Raw***
array ( 0 => array ( 'file' => '/rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/core/functions.core.php', 'line' => 169, 'function' => 'errorpage', 'args' => array ( 0 => 'Database Problem', 1 => '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
SELECT COUNT(*) AS num FROM videodata WHERE videodata.owner_id = ', 2 => true, ), ), 1 => array ( 'file' => '/rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/core/session.php', 'line' => 62, 'function' => 'runSQL', 'args' => array ( 0 => 'SELECT COUNT(*) AS num FROM videodata WHERE videodata.owner_id = ', ), ), 2 => array ( 'file' => '/rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/index.php', 'line' => 180, 'function' => 'session_default_owner', 'args' => array ( ), ), )

***End Stack Traceback - Raw***


***Stack Traceback - Formated***
file: /rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/core/functions.core.php
line: 169
function: errorpage
0: Database Problem
1: 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
SELECT COUNT(*) AS num FROM videodata WHERE videodata.owner_id =
2: 1
file: /rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/core/session.php
line: 62
function: runSQL
0: SELECT COUNT(*) AS num FROM videodata WHERE videodata.owner_id =
file: /rest/www/videodb.qasdyn.nl.eu.org-0/videodb.qasdyn.nl.eu.org/index.php
line: 180
function: session_default_owner

***End Stack Traceback - Formated***