Fix an issue where an invalid SQL request was passed to server because the list of phone numbers (:phones) was empty.