Fixing query bounds in from_SEGUE.py