Same comment here. Try to keep queries out of the asserts and follow the pattern:

1. Do set up: Fetch anything that you need, do any necessary "pre-test" steps.
2. Do some operation: Do what you're trying to do
3. Assert that everything is as it is: Validate the side effects of what you've done