bug #3579 NOW() function incorrectly selected (partial regression)