rowcount in home.php was causing an error