Fix checking chained SQL calls in scopes

should fix #471
Merge pull request #472 from presidentbeef/fix_chained_calls_in_single_line_scopes

Fix checking chained SQL calls in scopes