Fixed sql_query SQLSTATE error when trying to fetch() data from a non existent results set