Hello

please help to solve the PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 error in drupal 7.10. this error comes in user pages .....check the error

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

#0 /home/facea2/public_html/includes/database/database.inc(2135): PDOStatement->execute(Array)
#1 /home/facea2/public_html/includes/database/database.inc(664): DatabaseStatementBase->execute(Array, Array)
#2 /home/facea2/public_html/includes/database/database.inc(2314): DatabaseConnection->query('SELECT distinct...', Array, Array)
#3 /home/facea2/public_html/sites/faceangel/modules/postcomment/postcomment.module(25): db_query('SELECT distinct...')
#4 /home/facea2/public_html/sites/faceangel/modules/postcomment/postcomment.module(126): get_user_relationships(NULL)
#5 [internal function]: postcomment_contents_form(Array, Array, 'user', NULL, NULL)
#6 /home/facea2/public_html/includes/form.inc(785): call_user_func_array('postcomment_con...', Array)
#7 /home/facea2/public_html/includes/form.inc(329): drupal_retrieve_form('postcomment_con...', Array)
#8 /home/facea2/public_html/includes/form.inc(123): drupal_build_form('postcomment_con...', Array)
#9 /home/facea2/public_html/sites/faceangel/modules/postcomment/postcomment.module(17): drupal_get_form('postcomment_con...', 'user', NULL, NULL)
#10 [internal function]: postcomment_block_view('my-block-id')
#11 /home/facea2/public_html/includes/module.inc(794): call_user_func_array('postcomment_blo...', Array)
#12 /home/facea2/public_html/modules/block/block.module(834): module_invoke('postcomment', 'block_view', 'my-block-id')
#13 /home/facea2/public_html/modules/block/block.module(658): _block_render_blocks(Array)
#14 /home/facea2/public_html/modules/block/block.module(315): block_list('content_top')
#15 /home/facea2/public_html/modules/block/block.module(268): block_get_blocks_by_region('content_top')
#16 /home/facea2/public_html/includes/common.inc(5505): block_page_build(Array)
#17 /home/facea2/public_html/includes/common.inc(2550): drupal_render_page(Array)
#18 /home/facea2/public_html/includes/common.inc(2438): drupal_deliver_html_page(Array)
#19 /home/facea2/public_html/includes/menu.inc(518): drupal_deliver_page(Array, '')
#20 /home/facea2/public_html/index.php(21): menu_execute_active_handler()
#21 {main}

$_REQUEST:
Array
(
[SESSabf37c517837443d1a9f35f3c2814059] => bfSZgEZ2CmkAbSvslW7jLRlS4pbdeZbRcAts4gbFxRw
[has_js] => 1
)

REQUEST_URI:
/user

Please help to solve this....................:(

Thanks