Wizna: An error occured in: ERROR: could not resize shared memory segment "/PostgreSQL.2106987649" to 1048576 bytes: No space left on device Query: SELECT DISTINCT
ip_subcategory.subcat_id AS id,
ip_subcategory.subcat_name AS name,
ip_subcategory.subcat_seo AS seo,
COALESCE(ips.ile,0) as ile
FROM
ip_subcategory
LEFT JOIN (
SELECT count(DISTINCT(ip_card.card_id)) as ile, subcat_id
FROM
ip_card_cs,
ip_cs,
ip_card,
ip_city
WHERE
ip_card_cs.cs_id=ip_cs.cs_id AND
ip_card_cs.card_id = ip_card.card_id AND
ip_card.city_id = ip_city.city_id AND
ip_card.card_status = '0' AND
ip_city.city_id=2202 AND
ip_cs.cat_id=44102
GROUP BY subcat_id
) ips ON (ips.subcat_id=ip_subcategory.subcat_id ),
ip_cs
WHERE
ip_cs.cat_id=44102 AND
ip_cs.subcat_id=ip_subcategory.subcat_id
ORDER BY
ip_subcategory.subcat_name