Printing output of 'fetch' used as statements