How about this query:

    SELECT `unique_id` FROM `tblEligibleStudents` WHERE `roll_no` = :roll_no AND `unique_id` = :unique_id

and then later in the code we simply do the following:

    return $temp_result->fetch();
It will automatically return true or false.