1st ORDER BY term out of range - should be between 1 and 6