Invalid MySQL query

MySQL server has gone away

SELECT DISTINCT comp.name, comp.main_picture as filename, comp.external_url, comp.type, s.name AS new_domain, addr.address, addr.coord1, addr.coord2, ( 6371 * acos( cos( radians('52.045518') ) * cos( radians( addr.coord2 ) ) * cos( radians( addr.coord1) - radians('23.710942') ) + sin( radians('52.045518') ) * sin( radians( addr.coord2 ) ) ) ) AS distance FROM fav_companies comp INNER JOIN ch_companies_addresses addr ON comp.id = addr.comp_id LEFT JOIN ch_subdomains AS s ON s.target_id = comp.id AND s.type = 2 WHERE comp.category = 242 AND comp.is_closed = 0 AND comp.id <> 11798 HAVING distance < 1.5 ORDER BY distance LIMIT 3Invalid MySQL query

MySQL server has gone away

SELECT id,menu_id FROM ch_menu2cats_new WHERE cat_id = 242 AND city=255Invalid MySQL query

MySQL server has gone away

SELECT DISTINCT n.id, n.title, n.descrip, n.period_start,n.filename, DAY(n.period_start) nday, MONTH(n.period_start) nmonth, YEAR(n.period_start) nyear FROM ch_news n LEFT JOIN ch_news_companies news_comp ON n.id = news_comp.news_id WHERE (n.live = 1 OR n.live = 2) AND (news_comp.comp_id = 11798 OR n.comp_id = 11798) AND (cid = 1 OR cid = 4) AND n.type IN (3,5,6,7) AND n.period_start <= NOW() AND (n.finish_date >= CURDATE() OR n.finish_date is Null) ORDER BY n.period_start DESC LIMIT 0, 3Invalid MySQL query

MySQL server has gone away

SELECT count(*) FROM ch_news WHERE cid = 1 AND comp_id = 11798Invalid MySQL query

MySQL server has gone away

SELECT opt.*, pos.pos pos FROM (SELECT category FROM fav_companies WHERE id = 11798) cat_id LEFT JOIN ch_companies_options opt ON opt.parent = 0 AND opt.cat_id = cat_id.category LEFT JOIN ch_companies_options_positions pos ON pos.cid = 11798 AND pos.pid = opt.id ORDER BY pos.pos Invalid MySQL query

MySQL server has gone away

SELECT cat_id FROM ch_companies_categories_options_copy WHERE copy_id = (SELECT category FROM fav_companies WHERE id = 11798)Invalid MySQL query

MySQL server has gone away

SELECT opt.*, '0' pos FROM (SELECT category FROM fav_companies WHERE id = 11798) cat_id LEFT JOIN ch_companies_options opt ON opt.cat_id = cat_id.category LEFT JOIN ch_companies_options_selected sel ON opt.id = sel.option_id WHERE sel.comp_id = 11798Invalid MySQL query

MySQL server has gone away

SELECT cat_id FROM ch_companies_categories_options_copy WHERE copy_id = (SELECT category FROM fav_companies WHERE id = 11798)Invalid MySQL query

MySQL server has gone away

SELECT name, name_clean, meta_keywords, meta_description FROM fav_companies_categories WHERE cat_id = 242Invalid MySQL query

MySQL server has gone away

SELECT a.id, title, a.orientation, filename, NULL AS active FROM ch_companies_albums AS a LEFT JOIN ch_companies_photos AS p ON p.album_id = a.id AND p.is_top = 1 WHERE a.comp_id = 11798 AND a.is_active=1 ORDER BY a.posInvalid MySQL query

MySQL server has gone away

SELECT id,filename,orientation,NULL as swf_name,pos,name FROM ch_companies_photos WHERE album_id=0 AND is_top=0 AND comp_id=11798 AND filename<>'' ORDER BY posInvalid MySQL query

MySQL server has gone away

SELECT id, thumb_name, swf_name, xml_name, skin_name FROM ch_companies_panorama WHERE comp_id=11798 ORDER BY id DESCInvalid MySQL query

MySQL server has gone away

SELECT e.eid, e.name, e.filename, DATE_FORMAT(d.edate,'%Y-%m-%d') edate FROM ch_events e INNER JOIN ch_events_dates AS d ON d.event_id = e.eid WHERE d.edate >= CURDATE() AND (e.company = 11798 OR e.organizer = 11798) ORDER BY d.edate LIMIT 6Invalid MySQL query

MySQL server has gone away

SELECT p.id, p.mdate, p.ename, p.filename,COALESCE(NULLIF(p.ename, ''),e.name) AS event_name FROM ch_parties p LEFT JOIN ch_events e ON e.eid = p.eid WHERE p.company=11798 GROUP BY p.id ORDER BY p.mdate DESC LIMIT 2Invalid MySQL query

MySQL server has gone away

SELECT d.id, d.name, d.filename, DATE_FORMAT(d.start_date,'%d.%m.%Y') sdate, DATE_FORMAT(d.end_date,'%d.%m.%Y') edate FROM ch_discounts d WHERE d.end_date >= CURDATE() AND d.company_id = 11798 ORDER BY d.start_date DESC, d.id DESC LIMIT 2Invalid MySQL query

MySQL server has gone away

SELECT com.comment_id, com.user_id, com.user_name, com.comment, com.is_admin, com.clevel, com.cleft, DATE_FORMAT(com.created_at,'%Y%m%d') AS cdate, DATE_FORMAT(com.created_at,'%H:%i') AS ctime, com.likes, com.dislikes, av.filename FROM ch_comments_new com LEFT JOIN ch_users_photos av ON av.uid = com.user_id WHERE com.type = 1 AND com.object_id = 11798 AND com.clevel <> 0 AND is_waiting_moderation = 0 AND is_hidden = 0 ORDER BY com.cright DESC LIMIT 0, 20Invalid MySQL query

MySQL server has gone away

SELECT COUNT(comment_id) as cid FROM ch_comments_new com WHERE com.type = 1 AND com.object_id = 11798 AND is_waiting_moderation = 0 AND is_hidden = 0 Invalid MySQL query

MySQL server has gone away

SELECT * FROM ch_companies_bid2categories WHERE category_id = 242Invalid MySQL query

MySQL server has gone away

SELECT * FROM fav_companies_categories WHERE city = 255 AND is_show = 1 ORDER BY pos ASCInvalid MySQL query

MySQL server has gone away

SELECT menu.id, menu.menu_name, menu.short_text, menu.short_text2, menu.long_text AS link, cat.cat_id cat_id, cat.name_clean cat_name, cat.url cat_domain, city.domain city_domain, m2c.another_name another_name, m2c.url, m2c.menu_type, m2c.small_text, m2c.small_text_title, m2c.id menu_id FROM ch_menu_new menu LEFT JOIN ch_menu2cats_new m2c ON menu.id = m2c.menu_id LEFT JOIN fav_companies_categories cat ON m2c.cat_id = cat.cat_id LEFT JOIN ch_geo_cities city ON city.city_id = menu.city_id WHERE menu.city_id = 255 ORDER BY menu.pos, m2c.pos ASCInvalid MySQL query

MySQL server has gone away

SELECT name, target_id FROM ch_subdomains WHERE type = 1 Баня Баня в Бресте
Баня в Бресте Добавить фото
Добавить описание услуг

Предлагаем посетить Вам Баню в Бресте. Банька на дровах. Парилка вмещает в себя 4-6 человек, полотенца, шапочки, веники, различные масла. Душевая, туалет. Комната для отдыха: на 12 человек. Большой стол, за которым сможет разместиться вся компания.


Здесь ещё нет комментариев. Стань первым!
Система Orphus