update sanitize_sql_hash_for_conditions to accept another table anme paremeter