MySQL error 1250: Table 'contacts' from one of the SELECTs cannot be used in global ORDER clause

This solves most of the issues, but Products and Services Purchased and History still have issues