Assert sql stmt before using them