make queries compatible to php installations without mysqlnd driver