Checked for pCode in query, otherwise ignore