Pass PDO to SQL Error function in Tmux