Follow up 82b583b5ef4e729ad2c3c74b26adce16a145605a

Fixed mapreg reload issue, sql_query not returning results, and caused deletearray to no longer display error messages when the array in question is not available.
Special Thanks to Haruna, ossi0110

Signed-off-by: shennetsind <ind@henn.et>