When a misformed sql query actually returns me the correct results