How to fix CR_NO_RESULT_SET (2053): Attempt to read row with no result set in MySQL | DevErrors