SELECT url FROM vanity_urls WHERE slug='go.php' ORDER BY id DESC LIMIT 1
SELECT product_id FROM products_slugs WHERE slug LIKE '%go.php%' ORDER BY product_id DESC LIMIT 1
INSERT INTO layout_hashes (file_name, hash) VALUES ON DUPLICATE KEY UPDATE hash=VALUES(hash)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE hash=VALUES(hash)' at line 1