Publish Date fixes #748. SQL query placeholder fixes.