SELECT url FROM vanity_urls WHERE slug='εξωλεμβιες-μηχανες-θαλασσης/suzuki-df-4l-48598' ORDER BY id DESC LIMIT 1

SELECT product_id FROM products_slugs WHERE slug LIKE '%εξωλεμβιες-μηχανες-θαλασσης/suzuki-df-4l-48598%' ORDER BY product_id DESC LIMIT 1

SELECT hash FROM layout_hashes WHERE file_name="εξωλεμβιες-μηχανες-θαλασσης/suzuki-df-4l-48598"

SELECT file_name, hash FROM layout_hashes WHERE file_name IN ('header', 'left', 'right', 'footer', 'εξωλεμβιες-μηχανες-θαλασσης/suzuki-df-4l-48598', 'header-εξωλεμβιες-μηχανες-θαλασσης/suzuki-df-4l-48598')

INSERT INTO layout_hashes (file_name, hash) VALUES , ('header', '34fad64d4592ceabd87c8d0286549b06'), ('left', 'e29218fe2ca1c28a3aaf2a4d67d1ed17'), ('right', 'd41d8cd98f00b204e9800998ecf8427e'), ('footer', '4be5a615909cabdf04c189903d2d903c') ON DUPLICATE KEY UPDATE hash=VALUES(hash)