Bug#37492 timing bug in subselect.test + similar weaknesses found during testing + replace error numbers by error names