SimpleMVC Error

An error occured when processing this action.

Database backend gave an error

Error details

Error when performing query.
SQL Query: select distinct b.* from blogs as b, blogmaps as bmap where b.id=bmap.blog_id and bmap.user_id=
Response: 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

Backtrace

#0  require_once() called at [/www/v3/libs/utils/errors.php:17]
#1  SimpleMVCErrors::sqlError(select distinct b.* from blogs as b, blogmaps as bmap where b.id=bmap.blog_id and bmap.user_id=, 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) called at [/www/v3/libs/datasource.php:63]
#2  Datasource::query(select distinct b.* from blogs as b, blogmaps as bmap where b.id=bmap.blog_id and bmap.user_id=) called at [/www/v3/webapp/actions/dashboard_action.php:17]
#3  DashboardAction->index()
#4  call_user_func_array(Array ([0] => DashboardAction Object ([_contextVariables] => Array ([hasSaveErrors] => ),[template] => default,[_renderView] => 1,[input] => Array (),[session] => Session Object ([] => Array ([action.template] => dashboard,[user] => Array ([username] => fb_100000507110998,[password] => no.login.via.normal,[email] => apps+123360887535.100000507110998.84eb07c3c79c8b7cf21c6b8b2512e954@proxymail.facebook.com,[fb_uid] => 100000507110998,[state] => active,[id] => ),[profile] => Array ([user_id] => ,[name] => Kuun Silta)),[] => true,[] => Array (),[] => Array (),[] => Array (),[] => ,[] => Array ([0] => dashboard,[1] => ,[2] => externalapi/fblogin,[3] => externalapi/fbcreate,[4] => externalapi/fblogin)),[params] => Array (),[_requestURI] => dashboard,[view] => ),[1] => index), Array ()) called at [/www/v3/libs/action.php:200]
#5  Action::_executeAction() called at [/www/v3/webroot/index.php:31]