hash('https://' || o.host_fixed), hash('https://www.' || o.host_fixed), hash('http://' || o.host_fixed), hash('http://www.' || o.host_fixed) ) ORDER BY h.title IS NOT NULL DESC, h.title || '/' <> o.host_fixed DESC, h.url = o.url DESC, h.frecency DESC, h.id DESC LIMIT 1 ) SELECT :query_type AS query_type, :searchString AS search_string, h.host_fixed AS host_fixed, h.url AS url, 3