Fixed hard-coded value

Fixed query to read from post instead of using a hard-coded value.