SET @HeadlineID = last_insert_id(); IF @HeadlineID > 0 THEN SELECT @HeadlineID; END IF