public function getPost(){ $sqlQuery = " SELECT * FROM ".$this->postsTable." ORDER BY id DESC"; $stmt = $this->conn->prepare($sqlQuery); $stmt->execute(); $result = $stmt->get_result(); return $result; }