Fixed a mysql error on updating feeds