While retrieving the data from MySQL through PHP, it retrieves one extra row which is NOT present in database. Why?
<?php
$con = mysqli_connect('host', 'username', 'password', 'database');
$sql = $con->query("SELECT * FROM info");
while($row = $sql->fetch_array()) {
$image = $row['image_path'];
$caption = $row['caption'];
$id = $row['id'];
?>
<div class="col-md-4">
<div class="thumbnail">
<img src=<?php echo $image;?>>
<div class="caption text-center"><h3><?php echo $caption;?></h3></div>
<button class="btn btn-default" onclick="modal(<?php echo $id;?>)">View</button>
</div>
</div><!-- Column END -->
<?php
}
?>