Fixed SQL query.
Better sharing.