select * from starmerx_user_permission where (user_name,location_id,permission_type) not in (('xxx',315,'internal_in_sign'))