Edited ExecuteSQL function

Fixes ArrayResults function when using Select method, returned empty array before