Fixed SQL query style.