Missing pipe attribute in condition

Getting SQL error if pass site_srl argument to query.