Related post

wp_get_post_categories( $post->ID ), 'posts_per_page' => 3, 'post__not_in' => array( $post->ID ) ) ); ?>
have_posts() ) { while( $related->have_posts() ) { $related->the_post(); ?>