get_results ( ”
SELECT *
FROM $wpdb->prefix.’results’
WHERE user_id = 1
” );

foreach ( $result as $course )
{
echo $course->coursename.’
‘;
}
?>

“; print_r($wpdb->queries); echo “

“;
}//Lists all the queries executed on your page
?>