SELECT `ps`.`id`, `psl`.`title`, DATE_FORMAT(`psc`.`activeFrom`, '%d.%m.%Y') AS activeFrom, `psc`.`content`, `pm`.`file`, `pc`.`id` AS idCoordinate, `pc`.`latitude_deg`, `pc`.`latitude_min`, `pc`.`latitude_sec`, `pc`.`longitude_deg`, `pc`.`longitude_min`, `pc`.`longitude_sec`, `pc`.`googleLat`, `pc`.`googleLng`, COUNT(`img`.`id`) AS imgCount FROM `portal_seosite` AS ps INNER JOIN `portal_seosite_lang` AS psl ON (`psl`.`id`=`ps`.`id` AND `psl`.`id_lang`='1') INNER JOIN `portal_seosite_catalogs` AS psc ON (`psc`.`id_catalog`='49' AND `psc`.`id_seosite`=`ps`.`id` AND `psc`.`active`='1' AND `psc`.`activeFrom`<=CURDATE()) LEFT JOIN `portal_media` AS pm ON (`pm`.`id_object`=`ps`.`id` AND `pm`.`cat`=`ps`.`tab` AND `pm`.`main`='1') LEFT JOIN `portal_coordinates` AS pc ON (`pc`.`id_object`=`ps`.`id`) LEFT JOIN `portal_media` AS img ON (`img`.`id_object`=`ps`.`id` AND `img`.`cat`=`ps`.`tab` AND `img`.`main`!='1') INNER JOIN `portal_seosite_categories` AS psca ON (`psca`.`id_seosite`=`ps`.`id` AND `psca`.`id_catalog`=`psc`.`id_catalog` AND `psca`.`id_category` IN () ) WHERE `ps`.`show`='1' AND `ps`.`id` != '231' GROUP BY `ps`.`id` ORDER BY RAND() LIMIT 0, 4
1064: Something is wrong in your syntax obok ') ) WHERE `ps`.`show`='1' AND `ps`.`id` != '231' GROUP ' w linii 21
SELECT `ps`.`id`, `psl`.`title`, DATE_FORMAT(`psc`.`activeFrom`, '%d.%m.%Y') AS activeFrom, `psc`.`content`, `pm`.`file`, `pc`.`id` AS idCoordinate, `pc`.`latitude_deg`, `pc`.`latitude_min`, `pc`.`latitude_sec`, `pc`.`longitude_deg`, `pc`.`longitude_min`, `pc`.`longitude_sec`, `pc`.`googleLat`, `pc`.`googleLng`, COUNT(`img`.`id`) AS imgCount FROM `portal_seosite` AS ps INNER JOIN `portal_seosite_lang` AS psl ON (`psl`.`id`=`ps`.`id` AND `psl`.`id_lang`='1') INNER JOIN `portal_seosite_catalogs` AS psc ON (`psc`.`id_catalog`='49' AND `psc`.`id_seosite`=`ps`.`id` AND `psc`.`active`='1' AND `psc`.`activeFrom`<=CURDATE()) LEFT JOIN `portal_media` AS pm ON (`pm`.`id_object`=`ps`.`id` AND `pm`.`cat`=`ps`.`tab` AND `pm`.`main`='1') LEFT JOIN `portal_coordinates` AS pc ON (`pc`.`id_object`=`ps`.`id`) LEFT JOIN `portal_media` AS img ON (`img`.`id_object`=`ps`.`id` AND `img`.`cat`=`ps`.`tab` AND `img`.`main`!='1') INNER JOIN `portal_seosite_categories` AS psca ON (`psca`.`id_seosite`=`ps`.`id` AND `psca`.`id_catalog`=`psc`.`id_catalog` AND `psca`.`id_category` IN () ) WHERE `ps`.`show`='1' AND `ps`.`id` != '231' GROUP BY `ps`.`id` ORDER BY RAND() LIMIT 0, 4
1064: Something is wrong in your syntax obok ') ) WHERE `ps`.`show`='1' AND `ps`.`id` != '231' GROUP ' w linii 21
USG Łódź
Proszę czekać...
zamknij