Fixed queries in mysql_update