$query = "SELECT * FROM NEWS ORDER BY date DESC LIMIT ".$d.", ".$dv_guest_page."";

prova a fare un echo $query... potresti avere il limit errato.