Show last 2 image attachments from posts

function show_all_thumbs() {
            global $post;
            $post = get_post( $post );
            /* image code */
            $images = & get_children( 'post_type=attachment&post_mime_type=image&output=ARRAY_N&orderby=menu_order&order=ASC&post_parent=" . $post->post_parent );
            if( $images ) {
                $i = 0;
                $images = array_reverse( $images );
                foreach( $images as $imageID => $imagePost ) {
                    unset( $the_b_img );
                    $the_b_img = wp_get_attachment_image( $imageID, "thumbnail', false );
                    $thumblist .= '<a href="' . get_attachment_link( $imageID ) . '">' . $the_b_img . '</a>';
                    $i++;
                    if( 2 == $i ) { break; }
                }
            }
            return $thumblist;
        }

Use that. Or, use what I wrote above but take out the
$images = array_reverse( $images );
line and change &order=ASC to &order=DESC

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)