SELECT
cscart_ab__gp_locations.*,
cscart_ab__gp_location_descriptions.*
FROM
cscart_ab__gp_locations
LEFT JOIN cscart_ab__gp_location_descriptions ON cscart_ab__gp_locations.location_id = cscart_ab__gp_location_descriptions.location_id
AND cscart_ab__gp_location_descriptions.lang_code = 'ru'
WHERE
1
AND cscart_ab__gp_locations.company_id = 1
AND cscart_ab__gp_locations.location_id = 0
AND cscart_ab__gp_locations.status = 'A'