Passing variable as permalink URL

When using the pagename query var with a parent/child page, the value should reflect the parent/child relationship, or it will cause a redirect. Instead of:

pagename=profile

try:

pagename=faculty/profile

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)