MySQL syntax for contact dropdowns