Revert debug query
Use table prefix