Update post.php

getting query results