I've downloaded 0.9.28.3 with FPC 2.4.0, and I replaced mysqlconn.inc and I open this file from Lazarus, and I see your modifications, but I get the same error:
call getBalanceMdn( '120258463', 'motaz@bananaaa.com')
when I called .Open I get:
SQLQuery1 : Cannot open a non-select statement