fix an issue where the ordering of the select statement affected whether it threw an error or not
comments