Executes a raw SQL SELECT query and populates a result list.
This method combines selectPrepare and selectExecute for convenience. It prepares the query, executes it, and populates the result list.
| q |
The SQL SELECT query string |
| ret |
The list to populate with result objects |