I want to count readdate which must be null in table,i want to fire code in html , there is one table wich contain field like id,storeid,message,readdate,entrydate , if readdate is null then i want to count is and display thos count
<html>
<div class="orange-count">
<?php
echo $unread_recommendation = Storenotification::model()->count("id='" . Yii::app()->session['id'] . "' AND readdate='null' ");
?>
</div>
</html>