Print offending SQL statement