Use ->prepare properly to avoid errors on newer WP