Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.
I suspect that the issue is more likely to do with the IF statement, or the value of "live_amt_ante". Try changing "live_amt_ante = 0" to "live_amt_ante != 0" (not equal) to force it to use the "else" part of the IF statement and see if the .66 is used then. If so, we'll need to find out why the ante amount isn't being set.