There was a problem with the select query: