Fixed base SQL for 4.1