[fix] Fix Allow using SQL functions bug #112, reported by @Heirir