Fixed a missed 'db->quote' on an imploded $ids.