DB Query Builder - variables cut-off and overlapping

I think this screenshot explains the issues.