SELECT url FROM vanity_urls WHERE slug='ταχυπλοα-σκαφη/pirate-nikita-520' ORDER BY id DESC LIMIT 1

SELECT product_id FROM products_slugs WHERE slug LIKE '%ταχυπλοα-σκαφη/pirate-nikita-520%' ORDER BY product_id DESC LIMIT 1

SELECT hash FROM layout_hashes WHERE file_name="ταχυπλοα-σκαφη/pirate-nikita-520"

SELECT file_name, hash FROM layout_hashes WHERE file_name IN ('header', 'left', 'right', 'footer', 'ταχυπλοα-σκαφη/pirate-nikita-520', 'header-ταχυπλοα-σκαφη/pirate-nikita-520')

INSERT INTO layout_hashes (file_name, hash) VALUES , ('header', '7e1033948a883a20c7fbd202294665f8'), ('left', 'e29218fe2ca1c28a3aaf2a4d67d1ed17'), ('right', 'd41d8cd98f00b204e9800998ecf8427e'), ('footer', 'eb265aa37784bd846805b228f5ec2a49') ON DUPLICATE KEY UPDATE hash=VALUES(hash)