Well this is the first time that I am having a hard time debugging this simple Wordpress get_page() function:
$p = get_page(2); // error : Only variables can be passed by reference
it has to be like this:
$n = 2;
$p = get_page($n);
Getting the title and content is easy..
_e($p->post_title)
_e($p->post_content)
I know it sucks but I hope it helps!

