Edited ExecuteSQL function

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