How to fix CR_NO_DATA (2051): Attempt to read column without prior row fetch in MySQL | DevErrors