move sha1 function from mysql query to php to fix query failure
move sha1 function from mysql query to php to fix query failure

emoncms/emoncms,emoncms/emoncms,inverse/emoncms,inverse/emoncms,chaveiro/emoncms,inverse/emoncms,emoncms/emoncms,chaveiro/emoncms,inverse/emoncms,chaveiro/emoncms,chaveiro/emoncms,emoncms/emoncms,emoncms/emoncms