SELECT
storefronts.*
FROM
cscart_storefronts AS storefronts
LEFT JOIN cscart_storefronts_languages AS languages ON storefronts.storefront_id = languages.storefront_id
WHERE
1 = 1
AND (
languages.language_id IN ('1')
)
GROUP BY
storefronts.storefront_id
ORDER BY
storefronts.is_default desc