FOUND BUG! The length of sql was to short! 2048 is better than 1024!