Fixed SQL query problem.