add correct join order test
implement correct join order for Query\Select
remove forgotten commented code
keep a running count instead of counting each time
whitespace
change var name
Merge pull request #56 from MAXakaWIZARD/pr-correct-join-order

Correct join order
Merge branch 'max' into develop