you should enhance the indentation on $sql