When I want to find a value from a row using PDO I use the following method:
//Search whether user exists $sqlQueryEmailLogin = $dbh->prepare(\"SELECT ven
You should use OR instead of AND. That way, you will get all rows that match either by id or by status.
OR
AND
SELECT * FROM articles WHERE id = ? OR status = ?