I have code like this need to fetch only one specific value from the database : <?php
                        $stmt = $conn->prepare('SELECT Distinct(specificcategoryname) FROM `clientstable` c,specificcategories s where c.PhoneNumber=:phNo and c.SpecificCategoryId=s.SpecificCategoryId');
                       $stmt->execute(['phNo'=>$phNo]);
                        
                       while($row = $stmt->fetch()) {   
                               echo "<tr>";
                                echo "<td>".$row['specificcategoryname']."</td>";
                                echo "</tr>";
                            }
    ?>