/I need those questions whose status is 1 but its not working/
<?php $i=1;
//$coll=$collection->getSelect()->where("`main_table`.`status`= 1");
//$collection->load(true); // To dump the sql as text again and its working fine
foreach ($collection->getSelect()->where("`main_table`.`status`= 1") as $item) {?>
<div class="form-group">
<label for="requirement">Question :</label>
<input type="text" class="form-control" id="name" placeholder="Enter Question" name="question<?=$i?>"
value="<?= $item->getQuestion();?>">
<div class="form-group">
<label for="requirement">Answer :</label>
<textarea class="form-control" rows="5" id="requirement" name="answer<?=$i?>">
</textarea>
<?php $i++;}
?>