$query = sprintf($query, $this->db->quote(intval($User->id)), $this->db->quote(intval($Image->id)));