PDO Query issue

there’s no need for the first query at all. if you have no match, fetch() will return false.

2 Likes