Wrapping x posts in html without leaving empty html

check in your loop that it’s the end of a group of 6 AND the current post isn’t the last post.

change:

<?php if ($count % 6 == 0){ ?>

to:

<?php if ($count % 6 == 0 && $count != $our_work1->post_count ){ ?>

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