Im have a table **News** with:

-*id\_news* - *Primary Key*

-*title*

-*content*

-*date*

-category - Foreign Key

And then a **Categories** table with:

-*id\_category* - *Primary Key*

-*description*

And Im trying to show my categories description in a table and its not working, but my other data is working.

**Im trying like this:**

```
$readNews = $pdo->prepare("SELECT * FROM news ORDER BY date DESC");
$readNews ->execute();
$resultReadNews = $readNews ->rowCount();

if(!$resultReadNews >= 1)
{
echo 'There are now news yet';
}

else
{
  echo '<table>';
  echo ' <tr>';
  echo ' <td>Title:</td>';
  echo ' <td>Content:</td>';
  echo ' </tr>';

  while ($resultReadNews = $readNews ->fetch(PDO::FETCH_ASSOC))
    {
         $readCat=  $pdo->prepare("SELECT * FROM categories, newsWHERE id_category = ?");
         $readCat->bindValue(1,$resultReadNews ['category']);
         $readCat->execute();
         $resultReadCat = $readCat->fetch(PDO::FETCH_ASSOC);
         $rowsCat = $readCat->rowCount();

         echo '<tr>';
         echo '<td>'.$resultReadNews ['title'].'</td>';
         echo '<td>'.$resultReadNews ['content'].'</td>';
         echo '<td>'.$resultReadCat ['description'].'</td>';
}

```

Do you see where the problem is?