CREATE DEFINER=CURRENT_USER FUNCTION `GETPODTYPEID`(podtypeslug VARCHAR(250)) RETURNS int(11)
BEGIN
		DECLARE d_podId INT;
		
		SELECT ID INTO d_podId 
		FROM inno_lci_2_posts 
		WHERE post_name = podtypeslug;
		
		RETURN d_podId;
	END