ERROR IN getExamsById: MySQL server has gone away