I have a SELECT query, like this:
$stmnt = $conn->prepare("SELECT post_title, posts_cat FROM posts WHERE posts_cat=:posts_cat");
$stmnt->execute(array(':posts_cat' => $cat_id));
$post_info = $stmnt->fetch();
$count = $stmnt->rowCount();
If there are no posts it shows none, but if there's one or more then it displays only one.
Can someone tell me why this is?