Using craft.query() for a Custom Query

Learn how to set up a custom query in Craft to fetch data from any table in the database (even non-Craft tables).

Some stuff to help you along during the lesson: