New SQL statement for share search.