Use db->select() for query