Changed deprecated query() for execute()