Based on the error message, very likely the
$article_id
is empty. you can verify it by replacing the
$article_id
with an integer and run the application again.
Your code could be vulnerable to SQL injection. Here you can read more about SQL Injection vulnerability.
SQL Injection and Cross-Site Scripting[
^]