SELECT
storefronts.*
FROM
cscart_storefronts AS storefronts
WHERE
1 = 1
AND (
storefronts.url = 'vietpom.pxs.one'
OR storefronts.url = 'www.vietpom.pxs.one'
OR storefronts.url LIKE 'www_.vietpom.pxs.one'
OR storefronts.url LIKE 'vietpom.pxs.one/%'
OR storefronts.url LIKE 'www.vietpom.pxs.one/%'
OR storefronts.url LIKE 'www_.vietpom.pxs.one/%'
)
GROUP BY
storefronts.storefront_id
ORDER BY
storefronts.url = 'vietpom.pxs.one' DESC,
storefronts.url = 'www.vietpom.pxs.one' DESC,
storefronts.url LIKE 'www_.vietpom.pxs.one' DESC,
storefronts.url LIKE 'vietpom.pxs.one/%' DESC,
storefronts.url LIKE 'www.vietpom.pxs.one/%' DESC,
storefronts.url LIKE 'www_.vietpom.pxs.one/%' desc