you have a . instead of a comma in the not matched section between a.ord_type and a.source_key