Fixed empty binds issue in exec_query.