Please use the code block when you have code snippets in the posts. I would suggest you read - Before you make a query