>>Or maybe I'm just being completly stupid<<
No comment.
The \ isn't escaping...its referencing so you only need one.
Basically it is the same as
$foo = \$bar
.....except that as you don't have the scalar pre-defined it is easier to just reference it "on the fly"
The reference then tells the SQL module to not use quotes around the ImpCount + 1 bit otherwise mysql won't do the right query.
No comment.
The \ isn't escaping...its referencing so you only need one.
Basically it is the same as
$foo = \$bar
.....except that as you don't have the scalar pre-defined it is easier to just reference it "on the fly"
The reference then tells the SQL module to not use quotes around the ImpCount + 1 bit otherwise mysql won't do the right query.