[eluser]WanWizard[/eluser]
[quote author="den-javamaniac" date="1273367365"]Yes, that's correct. That's how it's done in a video tutorial.[/quote]
I mean that in your example you fetch the query result in the variable $data['query'], then you continue with using the variable $query, which is never assigned a value.
I assume this is an error in the tutorial?!