add check for last SELECT error