Fixed bug in SQL generation for GetTimestampId.