SyntaxFix
Write A Post
Hire A Developer
Questions
It looks like you don't have any records that match your query, so you'd want to return an empty array (or null or something) if the number of rows == 0.