Dean,
Thanks!
What I see is @ggg as the column heading and “1” as the value underneath. What version of MySQL 5 (exactly) are you using and are you using the latest driver too? If not can you try using the latest driver?
I have a feeling this may be related to some installation specific defaults. If you are executing this block of code within a procedure for example, maybe you could use a DECLARE statement to explicitly set @ggg to type INT / INTEGER. AFAIK, DECLARE cannot be used in a snippet like yours.
Brian.