Use db->select() for query
Merge pull request #1 from Segr/develop

* “$modx->db->select” is used instead of “$modx->db->query”.