Error: Failed to retreive record (Function: get_id_by_slug)