using a prepared statement the sequel way just didn't play nice with the use of the char_length sql function