$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
$msg_count = dbcount("(message_id)", "'.$db_prefix.'messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");