You are using $article to fetch rows from the database. When there are no more rows, $article will be false.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity
." Me Myself & Irene
Validate your HTML