Fixed issue with tmysql4 not returning the right query value in some circumstances