Bug Fix: Fixed sql statement.