table name with prefix also in checking query